From 566fd87e86848878b8b2043520c459945a82d5df Mon Sep 17 00:00:00 2001 From: Oliver Date: Thu, 3 Feb 2022 14:16:33 +1100 Subject: [PATCH] PEP style fixes --- InvenTree/build/views.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/InvenTree/build/views.py b/InvenTree/build/views.py index ec2ce27966..21cf5dda99 100644 --- a/InvenTree/build/views.py +++ b/InvenTree/build/views.py @@ -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: