Show More
@@ -2,8 +2,17 b' from __future__ import print_function' | |||
|
2 | 2 | import json |
|
3 | 3 | import os |
|
4 | 4 | |
|
5 | from jsonschema import SchemaError | |
|
6 | from jsonschema import Draft3Validator as Validator | |
|
5 | try: | |
|
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 | 16 | import jsonpointer as jsonpointer |
|
8 | 17 | from IPython.utils.py3compat import iteritems |
|
9 | 18 |
General Comments 0
You need to be logged in to leave comments.
Login now