From ea883aebb8592d2136383005ad81ffcb2ff1a3db Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Chac=C3=B3n?= Date: Fri, 21 Jul 2023 14:06:51 -0600 Subject: [PATCH] Catch None type in integrationUISP --- src/integrationUISP.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/integrationUISP.py b/src/integrationUISP.py index 8b4064e3..8041219e 100644 --- a/src/integrationUISP.py +++ b/src/integrationUISP.py @@ -359,7 +359,7 @@ def handleMultipleInternetNodes(sites, dataLinks, uispSite): uispSite = 'Internet' for link in dataLinks: if link['canDelete'] == False: - if link['from']['device']['identification']['id'] == link['to']['device']['identification']['id']: + if link['from']['device'] is not None and link['to']['device'] is not None and link['from']['device']['identification']['id'] == link['to']['device']['identification']['id']: link['from']['site']['identification']['id'] = '001' link['from']['site']['identification']['name'] = 'Internet' # Found internet link