mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
switch print with assert
This commit is contained in:
parent
e1abdddc4a
commit
c98cae8c1f
@ -47,7 +47,7 @@ class LabelConfig(AppConfig):
|
||||
try:
|
||||
from .models import StockLocationLabel
|
||||
obj = StockLocationLabel.objects.first()
|
||||
print(obj)
|
||||
assert bool(obj is not None)
|
||||
except AppRegistryNotReady:
|
||||
# Database might not yet be ready
|
||||
warnings.warn('Database was not ready for creating labels')
|
||||
|
Loading…
Reference in New Issue
Block a user