diff --git a/DrissionPage/drission.py b/DrissionPage/drission.py index 3356405..13ab9c5 100644 --- a/DrissionPage/drission.py +++ b/DrissionPage/drission.py @@ -173,4 +173,7 @@ class Drission(object): self.close_session() def __del__(self): - self.close() + try: + self.close() + except ImportError: + pass