From b7b399444c6d0bc679bf1090827b498f5554f816 Mon Sep 17 00:00:00 2001 From: TheNetworkGuy Date: Mon, 23 Feb 2026 14:04:56 +0100 Subject: [PATCH] Replaced raise with return False statement and added return True at the end of the function. --- netbox_zabbix_sync/modules/core.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/netbox_zabbix_sync/modules/core.py b/netbox_zabbix_sync/modules/core.py index 62fda70..0e8dd68 100644 --- a/netbox_zabbix_sync/modules/core.py +++ b/netbox_zabbix_sync/modules/core.py @@ -184,7 +184,7 @@ class Sync: if not self.netbox or not self.zabbix: e = "Not connected to NetBox or Zabbix. Please run the connect function first." logger.error(e) - raise SyncError(e) + return False device_cfs = [] vm_cfs = [] # Create API call to get all custom fields which are on the device objects @@ -422,3 +422,4 @@ class Sync: except SyncError: pass self.zabbix.logout() + return True