2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-06-20 22:06:28 +00:00

style improvments

This commit is contained in:
2021-05-07 07:46:35 +02:00
parent ae01503a9e
commit 9e59d41f12
2 changed files with 4 additions and 6 deletions

View File

@ -2070,7 +2070,7 @@ class PartPricing(AjaxView):
# check if data is set
try:
data = self.data
except Exception as _e:
except AttributeError:
data = {}
# Always mark the form as 'invalid' (the user may wish to keep getting pricing data)