mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
PEP fixes
This commit is contained in:
parent
ce82579930
commit
b5d75d6e6a
@ -1907,8 +1907,7 @@ class BomItem(models.Model):
|
||||
else:
|
||||
raise ValidationError({'sub_part': _('Sub part must be specified')})
|
||||
except Part.DoesNotExist:
|
||||
raise ValidationError({'sub_part': _('Sub part must be specified')})
|
||||
|
||||
raise ValidationError({'sub_part': _('Sub part must be specified')})
|
||||
|
||||
class Meta:
|
||||
verbose_name = _("BOM Item")
|
||||
|
@ -2449,7 +2449,6 @@ class BomItemCreate(AjaxCreateView):
|
||||
# Eliminate any options that are already in the BOM!
|
||||
sub_part_query = sub_part_query.exclude(id__in=[item.id for item in part.getRequiredParts()])
|
||||
|
||||
|
||||
except (ValueError, Part.DoesNotExist):
|
||||
pass
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user