Skip to content

Commit 860eecf

Browse files
committed
use ImportError
1 parent e78eb3c commit 860eecf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/test_tensorboard_integration.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ def tf_logs(tmpdir_factory):
1616
try:
1717
import tensorflow.compat.v1 as tf
1818
tf.disable_v2_behavior()
19-
except ModuleNotFoundError:
19+
except ImportError:
2020
import tensorflow as tf
2121

2222
x = np.random.rand(5)

0 commit comments

Comments
 (0)