Don't show stack trace in window alert (#71)

This commit is contained in:
Nikhil Rao 2022-12-11 12:14:39 -08:00 committed by GitHub
parent b9d2e2f05c
commit b13adbbbc5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -358,7 +358,9 @@ class State(Base, ABC):
except:
error = traceback.format_exc()
print(error)
return StateUpdate(events=[window_alert(error)])
return StateUpdate(
events=[window_alert("An error occurred. See logs for details.")]
)
# Fix the returned events.
events = utils.fix_events(events, event.token)