Skip to content

Commit 6a869df

Browse files
authored
Merge pull request #122 from nxt-dev/dev
Release api-v0.18.1
2 parents bcadb36 + 73f2ea1 commit 6a869df

File tree

2 files changed

+11
-4
lines changed

2 files changed

+11
-4
lines changed

nxt/cli.py

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
import json
66
import logging
77
import time
8+
import traceback
89

910
# Internal
1011
from nxt.session import Session
@@ -15,12 +16,15 @@
1516
STANDALONE)
1617
from nxt.remote.contexts import iter_context_names
1718
has_editor = False
19+
editor_error = None
20+
editor_error_tb = None
1821
try:
1922
import nxt_editor
2023
from nxt_editor.constants import EDITOR_VERSION
2124
has_editor = True
22-
except ImportError:
23-
pass
25+
except Exception as e:
26+
editor_error = e
27+
editor_error_tb = traceback.format_exc()
2428

2529
logger = logging.getLogger('nxt')
2630

@@ -84,8 +88,11 @@ def editor(args):
8488
:return: None
8589
"""
8690
if not has_editor:
87-
msg = 'Editor not found, you can install with "pip install nxt_editor"'
91+
msg = ('Editor did not load, '
92+
'you can install with "pip install nxt_editor"')
8893
print(msg)
94+
print(editor_error)
95+
print(editor_error_tb)
8996
return
9097
if isinstance(args.path, list):
9198
paths = args.path

nxt/version.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"API": {
33
"MAJOR": 0,
44
"MINOR": 18,
5-
"PATCH": 0
5+
"PATCH": 1
66
},
77
"GRAPH": {
88
"MAJOR": 1,

0 commit comments

Comments
 (0)