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()
|
||||
except AttributeError:
|
||||
# maybe eager thread cleanup upon external error
|
||||
if exc_type is None:
|
||||
if (exc_type, exc_value, traceback) == (None, None, None):
|
||||
raise
|
||||
warn("AttributeError ignored", TqdmWarning)
|
||||
|
||||
def __del__(self):
|
||||
self.close()
|
||||
|
|
Loading…
Reference in New Issue