sp-hydra-veil-gui/SMS-Exchange-Linux-GUI/process_email_data/load_email_operators.py
2026-01-28 13:13:57 +01:00

13 lines
415 B
Python
Executable file

import json
def load_email_operators(path_to_email_operators_list):
try:
with open(path_to_email_operators_list, 'r') as json_file:
data = json.load(json_file)
return data
except FileNotFoundError as e:
print(f"Error: {e}")
except json.JSONDecodeError as e:
print(f"Invalid JSON: {e}")
except Exception as e:
print(f"An error occurred: {e}")