mirror of
https://github.com/inventree/InvenTree.git
synced 2025-09-09 20:21:24 +00:00
PEP style fixes
This commit is contained in:
@@ -1227,7 +1227,7 @@ class SalesOrderAllocationCreate(AjaxCreateView):
|
||||
# Hide the 'line' field
|
||||
form.fields['line'].widget = HiddenInput()
|
||||
|
||||
except KeyError: # (ValueError, SalesOrderLineItem.DoesNotExist):
|
||||
except (ValueError, SalesOrderLineItem.DoesNotExist):
|
||||
pass
|
||||
|
||||
return form
|
||||
|
Reference in New Issue
Block a user