Remove error message (#5315)

- Polluting logs without benefit
This commit is contained in:
Oliver 2023-07-23 12:21:33 +10:00 committed by GitHub
parent 507205ca78
commit e6cd0b05ce
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -60,8 +60,9 @@ def reload_unit_registry():
# Once custom units are loaded, save registry
_unit_registry = reg
except Exception as e:
logger.error(f'Failed to load custom units: {e}')
except Exception:
# Database is not ready, or CustomUnit model is not available
pass
dt = time.time() - t_start
logger.debug(f'Loaded unit registry in {dt:.3f}s')