Skip to content

Commit

Permalink
Use eval instead of exec_internal in compile-string to handle errors …
Browse files Browse the repository at this point in the history
…properly
  • Loading branch information
Affonso-Gui committed Apr 10, 2019
1 parent a0aeacb commit e4be521
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion euslime/handler.py
Expand Up @@ -309,7 +309,7 @@ def swank_compile_string_for_emacs(self, cmd_str, *args):
assert isinstance(sexp, list)
except AssertionError:
raise Exception('Invalid s-expression in %s' % cmd_str)
self.euslisp.exec_internal(cmd_str)
list(self.euslisp.eval(cmd_str))
if len(sexp) > 2:
msg = dumps(sexp[:2] + [None], none_as='...')
else:
Expand Down

0 comments on commit e4be521

Please sign in to comment.