Browse Source

Rattrapage d'une erreur index Error sur la récupération du vendeur

hotfix_vendor_indexerror
Gabriel Detraz 6 years ago
committed by chirac
parent
commit
54db192e8f
  1. 2
      machines/models.py

2
machines/models.py

@ -1131,7 +1131,7 @@ class Interface(RevMixin, AclMixin, FieldPermissionModelMixin, models.Model):
try: try:
oui = mac.oui oui = mac.oui
vendor = oui.registration().org vendor = oui.registration().org
except NotRegisteredError: except (IndexError, NotRegisteredError) as error:
vendor = _("Unknown vendor.") vendor = _("Unknown vendor.")
return vendor return vendor

Loading…
Cancel
Save