From c98cae8c1f962faeee504d0152e0574c0ed397b7 Mon Sep 17 00:00:00 2001 From: Matthias Mair Date: Fri, 20 May 2022 08:19:14 +0200 Subject: [PATCH] switch print with assert --- InvenTree/label/apps.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/InvenTree/label/apps.py b/InvenTree/label/apps.py index 1bc4f30b14..84ab817422 100644 --- a/InvenTree/label/apps.py +++ b/InvenTree/label/apps.py @@ -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')