##// END OF EJS Templates
more verbose message on missing jsonschema
Paul Ivanov -
Show More
@@ -2,8 +2,17 b' from __future__ import print_function'
2 import json
2 import json
3 import os
3 import os
4
4
5 from jsonschema import SchemaError
5 try:
6 from jsonschema import Draft3Validator as Validator
6 from jsonschema import SchemaError
7 from jsonschema import Draft3Validator as Validator
8 except ImportError as e:
9 verbose_msg = """
10
11 The `jsonschema` packages is now a hard dependency for IPython
12
13 You can install it using `pip install jsonschema`
14 """
15 raise ImportError(e.message + verbose_msg)
7 import jsonpointer as jsonpointer
16 import jsonpointer as jsonpointer
8 from IPython.utils.py3compat import iteritems
17 from IPython.utils.py3compat import iteritems
9
18
General Comments 0
You need to be logged in to leave comments. Login now