mirror of
https://gitee.com/g1879/DrissionPage.git
synced 2024-12-10 04:00:23 +08:00
修复当有函数使用全局DrissionPage对象,在自动关闭时出现的异常
This commit is contained in:
parent
cbc07a6554
commit
d6465c412d
@ -173,4 +173,7 @@ class Drission(object):
|
|||||||
self.close_session()
|
self.close_session()
|
||||||
|
|
||||||
def __del__(self):
|
def __del__(self):
|
||||||
self.close()
|
try:
|
||||||
|
self.close()
|
||||||
|
except ImportError:
|
||||||
|
pass
|
||||||
|
Loading…
x
Reference in New Issue
Block a user