Skip to content

Commit

Permalink
#606 - show 'ERROR - ' keyword for Python errors (#609)
Browse files Browse the repository at this point in the history
see #606 for details. adding this to be consistent with TagUI error messages, and also have something meaningful for user to know if the execution of Python code runs into error.
  • Loading branch information
kensoh committed Nov 2, 2019
1 parent 3ee145d commit f8bc256
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/tagui_py/tagui_py.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ def py_intent ( raw_intent ):
exec(params,globals())
temp_result = temp_output.getvalue().strip()
except Exception as e:
temp_result = str(e)
temp_result = 'ERROR - ' + str(e)

sys.stdout = old_stdout
sys.stderr = old_stderr
Expand Down

0 comments on commit f8bc256

Please sign in to comment.