Skip to content
This repository was archived by the owner on Mar 22, 2024. It is now read-only.

Commit 7143671

Browse files
committed
[FIX] issue with config.py
1 parent 5c8b33c commit 7143671

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

utility/config.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,7 @@ def load_config(self):
2121
self.discord = config['discord']
2222
except KeyError:
2323
self.discord = {}
24-
self.script_data = config.get(f'{self.script_name}', None)
25-
if self.script_data is None:
26-
raise ValueError(f"Script data for '{self.script_name}' not found in the config.")
24+
self.script_data = config.get(f'{self.script_name}', {})
2725

2826
# Load config into instance variables
2927
self.global_data = config['global']

0 commit comments

Comments
 (0)