mirror of https://github.com/tqdm/tqdm.git
add warning msg
This commit is contained in:
parent
a3477060f1
commit
6c5fb3bcdc
|
@ -1027,8 +1027,9 @@ class tqdm(Comparable):
|
||||||
self.close()
|
self.close()
|
||||||
except AttributeError:
|
except AttributeError:
|
||||||
# maybe eager thread cleanup upon external error
|
# maybe eager thread cleanup upon external error
|
||||||
if exc_type is None:
|
if (exc_type, exc_value, traceback) == (None, None, None):
|
||||||
raise
|
raise
|
||||||
|
warn("AttributeError ignored", TqdmWarning)
|
||||||
|
|
||||||
def __del__(self):
|
def __del__(self):
|
||||||
self.close()
|
self.close()
|
||||||
|
|
Loading…
Reference in New Issue