From 54db192e8f96cdc2b0bdab72602b062d2a329442 Mon Sep 17 00:00:00 2001 From: Gabriel Detraz Date: Fri, 24 Jan 2020 20:59:36 +0100 Subject: [PATCH] =?UTF-8?q?Rattrapage=20d'une=20erreur=20index=20Error=20s?= =?UTF-8?q?ur=20la=20r=C3=A9cup=C3=A9ration=20du=20vendeur?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- machines/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/machines/models.py b/machines/models.py index c5a95863..96a6eb48 100644 --- a/machines/models.py +++ b/machines/models.py @@ -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