Show More
@@ -27,7 +27,7 b' from IPython.utils.capture import RichOutput' | |||||
27 | from IPython.utils.coloransi import TermColors |
|
27 | from IPython.utils.coloransi import TermColors | |
28 | from IPython.utils.jsonutil import rekey, extract_dates, parse_date |
|
28 | from IPython.utils.jsonutil import rekey, extract_dates, parse_date | |
29 | from IPython.utils.localinterfaces import localhost, is_local_ip |
|
29 | from IPython.utils.localinterfaces import localhost, is_local_ip | |
30 | from IPython.utils.path import get_ipython_dir |
|
30 | from IPython.utils.path import get_ipython_dir, compress_user | |
31 | from IPython.utils.py3compat import cast_bytes, string_types, xrange, iteritems |
|
31 | from IPython.utils.py3compat import cast_bytes, string_types, xrange, iteritems | |
32 | from IPython.utils.traitlets import (HasTraits, Integer, Instance, Unicode, |
|
32 | from IPython.utils.traitlets import (HasTraits, Integer, Instance, Unicode, | |
33 | Dict, List, Bool, Set, Any) |
|
33 | Dict, List, Bool, Set, Any) | |
@@ -395,6 +395,11 b' class Client(HasTraits):' | |||||
395 | " Please specify at least one of url_file or profile." |
|
395 | " Please specify at least one of url_file or profile." | |
396 | ) |
|
396 | ) | |
397 |
|
397 | |||
|
398 | if not os.path.exists(url_file): | |||
|
399 | raise IOError("Connection file %r not found. Is a controller running?" % \ | |||
|
400 | compress_user(url_file) | |||
|
401 | ) | |||
|
402 | ||||
398 | with open(url_file) as f: |
|
403 | with open(url_file) as f: | |
399 | cfg = json.load(f) |
|
404 | cfg = json.load(f) | |
400 |
|
405 |
General Comments 0
You need to be logged in to leave comments.
Login now