[js_highlight.py] Specify except clause with ImportError

This commit is contained in:
Josh Barnes
2017-10-24 00:08:00 +01:00
parent a359fdaa19
commit bc899af004
@@ -21,7 +21,7 @@ from traitlets import Unicode
try:
from html.parser import HTMLParser # py3
except:
except ImportError:
from HTMLParser import HTMLParser # py2