Skip to content

Commit bc899af

Browse files
committed
[js_highlight.py] Specify except clause with ImportError
1 parent a359fda commit bc899af

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/jupyter_contrib_nbextensions/nbconvert_support/js_highlight.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121

2222
try:
2323
from html.parser import HTMLParser # py3
24-
except:
24+
except ImportError:
2525
from HTMLParser import HTMLParser # py2
2626

2727

0 commit comments

Comments
 (0)