mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
parent
507205ca78
commit
e6cd0b05ce
@ -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')
|
||||
|
Loading…
Reference in New Issue
Block a user