fix error catching in add_to_milestone

This commit is contained in:
Lili (Tlapka) 2023-03-14 15:14:52 +01:00
parent 07c701de71
commit 2732967e26
1 changed files with 1 additions and 1 deletions

View File

@ -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