Add try/except around callable default

This commit is contained in:
Oliver Walters committed 2021-06-27 01:18:09 +10:00
1 parent 0cc999410b
commit 34a374ce9a
2 files changed
+8 -4

No files matched your search

-2
View File
@@ -603,8 +603,6 @@ class PartDetailTests(InvenTreeAPITestCase):
# And now check that the image has been set
p = Part.objects.get(pk=pk)
print("Image:", p.image.file)
class PartAPIAggregationTest(InvenTreeAPITestCase):
"""