Skip to content

Commit 9fc40a8

Browse files
committed
catching ImportError instead
1 parent f8502d6 commit 9fc40a8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/cs50/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
from .cs50 import eprint, get_char, get_float, get_int, get_string
1414
try:
1515
from .cs50 import get_long
16-
except Exception:
16+
except ImportError:
1717
pass
1818

1919
# Replace Flask's logger

0 commit comments

Comments
 (0)