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: