From e56cc12fbf3fe7e9797f23d37985322594c5daa9 Mon Sep 17 00:00:00 2001 From: Luca Cappelletti Date: Tue, 15 Jun 2021 08:17:48 +0200 Subject: [PATCH] Added AtributeError to address issue #1183 --- tqdm/keras.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tqdm/keras.py b/tqdm/keras.py index 68a88d45..523e62e9 100644 --- a/tqdm/keras.py +++ b/tqdm/keras.py @@ -7,7 +7,7 @@ from .auto import tqdm as tqdm_auto try: import keras -except ImportError as e: +except (ImportError, AttributeError) as e: try: from tensorflow import keras except ImportError: