mirror of
https://github.com/jokob-sk/NetAlertX.git
synced 2025-12-07 09:36:05 -08:00
Online history work 👷
This commit is contained in:
@@ -114,7 +114,7 @@ def list_to_csv(arr):
|
||||
return tmp
|
||||
|
||||
else:
|
||||
mylog('none', f'[{module_name}] ERROR Could not convert array: {arr}')
|
||||
mylog('none', f'[{module_name}] ⚠ ERROR Could not convert array: {arr}')
|
||||
|
||||
|
||||
|
||||
@@ -218,13 +218,13 @@ def getPluginObject(keyValues):
|
||||
if all_match:
|
||||
return item
|
||||
|
||||
mylog('verbose', [f'[{module_name}] Error - Object not found {json.dumps(keyValues)} '])
|
||||
mylog('verbose', [f'[{module_name}] ⚠ ERROR - Object not found {json.dumps(keyValues)} '])
|
||||
|
||||
return {}
|
||||
|
||||
except (FileNotFoundError, json.JSONDecodeError, ValueError) as e:
|
||||
# Handle the case when the file is not found, JSON decoding fails, or data is not in the expected format
|
||||
mylog('verbose', [f'[{module_name}] Error - JSONDecodeError or FileNotFoundError for file {plugins_objects}'])
|
||||
mylog('verbose', [f'[{module_name}] ⚠ ERROR - JSONDecodeError or FileNotFoundError for file {plugins_objects}'])
|
||||
|
||||
return {}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user