8
0
Fork 0
mirror of https://gitlab2.federez.net/re2o/re2o synced 2024-11-25 22:22:26 +00:00

Merge branch 'hotfix_vendor_indexerror' into 'master'

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

See merge request federez/re2o!479
This commit is contained in:
Yoann Pétri 2020-01-25 12:22:58 +01:00
commit b896799a97

View file

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