From 2732967e2658023ccdb85612f4a88b60dd7d64ea Mon Sep 17 00:00:00 2001 From: Lili Date: Tue, 14 Mar 2023 15:14:52 +0100 Subject: [PATCH] fix error catching in add_to_milestone --- tlapbot/owncast_helpers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tlapbot/owncast_helpers.py b/tlapbot/owncast_helpers.py index daaeb2c..fd77351 100644 --- a/tlapbot/owncast_helpers.py +++ b/tlapbot/owncast_helpers.py @@ -203,7 +203,7 @@ def add_to_milestone(db, redeem_name, points): ) db.commit() return True - except (Error, Exception) as e: + except (Error) as e: current_app.logger.error(f"Error occured updating milestone: {e.args[0]}") return False