2
0
mirror of https://github.com/mhinz/neovim-remote synced 2024-11-11 13:10:34 +00:00

Catch --remote-expr failures

This commit is contained in:
Marco Hinz 2015-12-16 23:25:20 +01:00
parent 012e97d29c
commit 8e7d5ff995

7
nvr
View File

@ -186,7 +186,12 @@ def main():
if args.remote_expr and n.attached():
for expr in args.remote_expr[0]:
result = n.server.eval(expr)
result = ''
try:
result = n.server.eval(expr)
except:
print('Evaluation failed: ' + expr)
continue
if type(result) is bytes:
print(result.decode())
elif type(result) is list: