13 lines
415 B
Python
Executable file
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}")
|