Skip to content

Commit

Permalink
Merge pull request #184 from cool-RR/patch-2
Browse files Browse the repository at this point in the history
Fix exception cause in validator.py
  • Loading branch information
MSeal committed Jun 15, 2020
2 parents dfb2696 + 9843146 commit a06f4c8
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions nbformat/validator.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,13 @@
from jsonschema import Draft4Validator as Validator
except ImportError as e:
verbose_msg = """
Jupyter notebook format depends on the jsonschema package:
https://pypi.python.org/pypi/jsonschema
Please install it first.
"""
raise ImportError(str(e) + verbose_msg)
raise ImportError(verbose_msg) from e

from ipython_genutils.importstring import import_item
from .reader import get_version, reads
Expand Down

0 comments on commit a06f4c8

Please sign in to comment.