File tree Expand file tree Collapse file tree 2 files changed +11
-4
lines changed Expand file tree Collapse file tree 2 files changed +11
-4
lines changed Original file line number Diff line number Diff line change 5
5
import json
6
6
import logging
7
7
import time
8
+ import traceback
8
9
9
10
# Internal
10
11
from nxt .session import Session
15
16
STANDALONE )
16
17
from nxt .remote .contexts import iter_context_names
17
18
has_editor = False
19
+ editor_error = None
20
+ editor_error_tb = None
18
21
try :
19
22
import nxt_editor
20
23
from nxt_editor .constants import EDITOR_VERSION
21
24
has_editor = True
22
- except ImportError :
23
- pass
25
+ except Exception as e :
26
+ editor_error = e
27
+ editor_error_tb = traceback .format_exc ()
24
28
25
29
logger = logging .getLogger ('nxt' )
26
30
@@ -84,8 +88,11 @@ def editor(args):
84
88
:return: None
85
89
"""
86
90
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"' )
88
93
print (msg )
94
+ print (editor_error )
95
+ print (editor_error_tb )
89
96
return
90
97
if isinstance (args .path , list ):
91
98
paths = args .path
Original file line number Diff line number Diff line change 2
2
"API" : {
3
3
"MAJOR" : 0 ,
4
4
"MINOR" : 18 ,
5
- "PATCH" : 0
5
+ "PATCH" : 1
6
6
},
7
7
"GRAPH" : {
8
8
"MAJOR" : 1 ,
You can’t perform that action at this time.
0 commit comments