mirror of
https://github.com/TheNetworkGuy/netbox-zabbix-sync.git
synced 2025-07-16 12:12:57 -06:00
corrected even more linting errors
This commit is contained in:
parent
ab2a341fa7
commit
364d376f55
@ -406,7 +406,7 @@ class NetworkDevice():
|
||||
fieldstr += "['" + field + "']"
|
||||
try:
|
||||
nb_value = eval(fieldstr)
|
||||
except:
|
||||
except Exception:
|
||||
nb_value = None
|
||||
if nb_value and isinstance(nb_value, int | float | str ):
|
||||
self.inventory[zbx_inv_field] = str(nb_value)
|
||||
|
Loading…
Reference in New Issue
Block a user