Skip to content

Commit 3b3cd14

Browse files
Francesco Murdacafridex
Francesco Murdaca
andauthored
Update app.py
Co-authored-by: Fridolín Pokorný <[email protected]>
1 parent 741d45c commit 3b3cd14

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

app.py

+4-1
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,10 @@ def main():
108108

109109
except Exception as e:
110110
_METRIC_PG_DUMP_STATUS.labels(THOTH_DEPLOYMENT_NAME, __component_version__).set(1)
111-
_LOGGER.exception(f"An error occurred while saving pg dump: {str(e)}")
111+
else:
112+
METRIC_PG_DUMP_STATUS.labels(THOTH_DEPLOYMENT_NAME, __component_version__).set(1)
113+
finally:
114+
_send_metrics()
112115

113116
_send_metrics()
114117

0 commit comments

Comments
 (0)