mirror of
https://gitlab2.federez.net/re2o/re2o
synced 2024-12-24 07:53:47 +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:
commit
b896799a97
1 changed files with 1 additions and 1 deletions
|
@ -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…
Reference in a new issue