Skip to content

Commit

Permalink
fix SELECTED_LEVEL config when no config.ini exist
Browse files Browse the repository at this point in the history
  • Loading branch information
chroming committed Sep 23, 2024
1 parent ba1f0b6 commit 87395a7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,9 @@ class Config(object):

if os.path.exists(config_file):
cp.read('config.ini', encoding='utf-8')
SELECTED_LEVEL = cp['LEVEL']['selected_level']
SELECTED_LEVEL = cp['LEVEL']['selected_level']
else:
SELECTED_LEVEL = 0


CONFIG = Config()

0 comments on commit 87395a7

Please sign in to comment.