mirror of
https://github.com/wassname/jupyter_contrib_nbextensions.git
synced 2026-06-27 16:10:24 +08:00
[js_highlight.py] Specify except clause with ImportError
This commit is contained in:
@@ -21,7 +21,7 @@ from traitlets import Unicode
|
||||
|
||||
try:
|
||||
from html.parser import HTMLParser # py3
|
||||
except:
|
||||
except ImportError:
|
||||
from HTMLParser import HTMLParser # py2
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user