Only update last_pro_check status if the job download pro plugins succeeded

This commit is contained in:
Théophile Diot 2024-03-16 07:51:08 +00:00
parent 62333a73e3
commit 47e8ee00e3
No known key found for this signature in database
GPG key ID: 248FEA4BAE400D06

View file

@ -119,7 +119,6 @@ try:
"pro_status": "invalid",
"pro_overlapped": False,
"pro_services": 0,
"last_pro_check": current_date,
}
metadata = {}
error = False
@ -280,7 +279,9 @@ try:
if err:
LOGGER.error(f"Couldn't update Pro plugins to database: {err}")
sys_exit(2)
db.set_pro_metadata(metadata | {"last_pro_check": current_date})
status = 1
LOGGER.info("🚀 Pro plugins downloaded and installed successfully!")
except SystemExit as e: