From 6c5fb3bcdcb1c16914dd58c3f669bc179a816790 Mon Sep 17 00:00:00 2001 From: Casper da Costa-Luis Date: Tue, 27 Aug 2019 16:50:07 +0100 Subject: [PATCH] add warning msg --- tqdm/std.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tqdm/std.py b/tqdm/std.py index e93590ff..99dff127 100644 --- a/tqdm/std.py +++ b/tqdm/std.py @@ -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()