Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Commit

Permalink
Hopefully, fix LaterGuage error handling
Browse files Browse the repository at this point in the history
  • Loading branch information
richvdh committed Jun 4, 2018
1 parent 5dbf305 commit 694968f
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions synapse/metrics/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,10 +60,13 @@ def collect(self):

try:
calls = self.caller()
except Exception as e:
print(e)
logger.err()
except Exception:
logger.exception(
"Exception running callback for LaterGuage(%s)",
self.name,
)
yield g
return

if isinstance(calls, dict):
for k, v in calls.items():
Expand Down

0 comments on commit 694968f

Please sign in to comment.