From 22bc0b3d90fb5080fc1f3399ba844041c063266c Mon Sep 17 00:00:00 2001 From: Matthias Date: Sun, 13 Feb 2022 05:21:43 +0100 Subject: [PATCH] ignore exception ref --- InvenTree/order/migrations/0052_auto_20211014_0631.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/InvenTree/order/migrations/0052_auto_20211014_0631.py b/InvenTree/order/migrations/0052_auto_20211014_0631.py index 64c7cd97c7..fda4335e08 100644 --- a/InvenTree/order/migrations/0052_auto_20211014_0631.py +++ b/InvenTree/order/migrations/0052_auto_20211014_0631.py @@ -20,7 +20,7 @@ def build_refs(apps, schema_editor): if result and len(result.groups()) == 1: try: ref = int(result.groups()[0]) - except: + except: # pragma: no cover ref = 0 order.reference_int = ref