diff --git a/InvenTree/InvenTree/tasks.py b/InvenTree/InvenTree/tasks.py index 6dbcb85bbf..efd0df90e8 100644 --- a/InvenTree/InvenTree/tasks.py +++ b/InvenTree/InvenTree/tasks.py @@ -553,7 +553,7 @@ def update_exchange_rates(force: bool = False): # Record successful task execution record_task_success('update_exchange_rates') - except OperationalError: + except (AppRegistryNotReady, OperationalError, ProgrammingError): logger.warning("Could not update exchange rates - database not ready") except Exception as e: # pragma: no cover logger.exception("Error updating exchange rates: %s", str(type(e)))