Fix error handling when checking for changes in the database in the scheduler

This commit is contained in:
Théophile Diot 2024-04-22 09:07:13 +02:00
parent bc0914c0b2
commit 8a4a875947
No known key found for this signature in database
GPG key ID: 248FEA4BAE400D06

View file

@ -719,8 +719,7 @@ if __name__ == "__main__":
changes = db.check_changes()
if isinstance(changes, str):
logger.error(f"An error occurred when checking for changes in the database : {changes}")
stop(1)
raise Exception(f"An error occurred when checking for changes in the database : {changes}")
# check if the plugins have changed since last time
if changes["pro_plugins_changed"]: