Skip to content

Commit

Permalink
Adds traceback to exceptions in logging.
Browse files Browse the repository at this point in the history
  • Loading branch information
jrwils committed May 13, 2024
1 parent de3ffd5 commit 14941bb
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion plugin_runner/plugin_runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
import os
import pathlib
import sys
import traceback

from collections import defaultdict

Expand Down Expand Up @@ -56,7 +57,11 @@ async def HandleEvent(self, request: Event, context):
for plugin_name in relevant_plugins:
plugin = LOADED_PLUGINS[plugin_name]
protocol_class = plugin["class"]
effects = protocol_class(request).compute()
try:
effects = protocol_class(request).compute()
except Exception as e:
log.error(traceback.format_exc())
continue
effect_list += effects

yield EventResponse(success=True, effects=effect_list)
Expand Down

0 comments on commit 14941bb

Please sign in to comment.