Skip to content

Commit

Permalink
Merge pull request nxt-dev#122 from nxt-dev/dev
Browse files Browse the repository at this point in the history
Release api-v0.18.1
  • Loading branch information
ImLucasBrown authored Nov 25, 2024
2 parents bcadb36 + 73f2ea1 commit 6a869df
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
13 changes: 10 additions & 3 deletions nxt/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
import json
import logging
import time
import traceback

# Internal
from nxt.session import Session
Expand All @@ -15,12 +16,15 @@
STANDALONE)
from nxt.remote.contexts import iter_context_names
has_editor = False
editor_error = None
editor_error_tb = None
try:
import nxt_editor
from nxt_editor.constants import EDITOR_VERSION
has_editor = True
except ImportError:
pass
except Exception as e:
editor_error = e
editor_error_tb = traceback.format_exc()

logger = logging.getLogger('nxt')

Expand Down Expand Up @@ -84,8 +88,11 @@ def editor(args):
:return: None
"""
if not has_editor:
msg = 'Editor not found, you can install with "pip install nxt_editor"'
msg = ('Editor did not load, '
'you can install with "pip install nxt_editor"')
print(msg)
print(editor_error)
print(editor_error_tb)
return
if isinstance(args.path, list):
paths = args.path
Expand Down
2 changes: 1 addition & 1 deletion nxt/version.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"API": {
"MAJOR": 0,
"MINOR": 18,
"PATCH": 0
"PATCH": 1
},
"GRAPH": {
"MAJOR": 1,
Expand Down

0 comments on commit 6a869df

Please sign in to comment.