8
0
Fork 0
mirror of https://gitlab2.federez.net/re2o/re2o synced 2024-11-05 01:16:27 +00:00

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

This commit is contained in:
Gabriel Detraz 2020-01-24 20:59:36 +01:00 committed by chirac
parent 56fdfca1aa
commit 54db192e8f

View file

@ -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