mirror of
https://github.com/LibreQoE/LibreQoS.git
synced 2025-02-25 18:55:32 -06:00
Catch None type in integrationUISP
This commit is contained in:
parent
5000eab638
commit
ea883aebb8
@ -359,7 +359,7 @@ def handleMultipleInternetNodes(sites, dataLinks, uispSite):
|
|||||||
uispSite = 'Internet'
|
uispSite = 'Internet'
|
||||||
for link in dataLinks:
|
for link in dataLinks:
|
||||||
if link['canDelete'] == False:
|
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']['id'] = '001'
|
||||||
link['from']['site']['identification']['name'] = 'Internet'
|
link['from']['site']['identification']['name'] = 'Internet'
|
||||||
# Found internet link
|
# Found internet link
|
||||||
|
Loading…
Reference in New Issue
Block a user