PEP style fixes

This commit is contained in:
Oliver 2022-02-03 14:16:33 +11:00
parent b387b4e173
commit 566fd87e86

View File

@ -100,7 +100,7 @@ class BuildOutputCreate(AjaxUpdateView):
# Check that requested output don't exceed build remaining quantity
maximum_output = int(build.remaining - build.incomplete_count)
if quantity > maximum_output:
form.add_error(
'output_quantity',
@ -112,7 +112,7 @@ class BuildOutputCreate(AjaxUpdateView):
'output_quantity',
_('Output quantity must be greater than zero'),
)
# Check that the serial numbers are valid
if serials:
try: