From 67a9c0aeec4f732c78e2ae87ae390d45020684bc Mon Sep 17 00:00:00 2001 From: Oliver Date: Wed, 9 Feb 2022 11:31:36 +1100 Subject: [PATCH] PEP fixes --- InvenTree/part/serializers.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/InvenTree/part/serializers.py b/InvenTree/part/serializers.py index 38a2bd443f..308641085a 100644 --- a/InvenTree/part/serializers.py +++ b/InvenTree/part/serializers.py @@ -938,7 +938,7 @@ class BomExtractSerializer(serializers.Serializer): else: # Multiple matches! error['part'] = _('Multiple matching parts found') - + if part is None and 'part' not in error: error['part'] = _('No matching part found') @@ -948,7 +948,7 @@ class BomExtractSerializer(serializers.Serializer): for field_name in self.OPTIONAL_COLUMNS: if field_name not in row: row[field_name] = self.find_matching_data(row, field_name, self.dataset.headers) - + rows.append(row) errors.append(error)