bugfix: milestone_complete was trying to [] None

This commit is contained in:
Lili (Tlapka) 2023-03-27 16:30:39 +02:00
parent 265a6cc9b4
commit 1b02624dea
1 changed files with 2 additions and 1 deletions

View File

@ -107,7 +107,8 @@ def milestone_complete(db, redeem_name):
current_app.logger.warning("Milestone not found in database.")
current_app.logger.warning("Maybe you forgot to run the refresh-milestones CLI command "
"after you added a new milestone to the config?")
return row[0]
else:
return row[0]
except Error as e:
current_app.logger.error(f"Error occured checking if milestone is complete: {e.args[0]}")