Skip to content

Commit

Permalink
updated version constant and added clear error message in case of inv…
Browse files Browse the repository at this point in the history
…alid kijiku rules upon startup
  • Loading branch information
Bikatr7 committed Dec 21, 2023
1 parent c18436b commit 3e39c2d
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
11 changes: 8 additions & 3 deletions kudasai.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,15 @@ def boot() -> None:

Logger.push_batch()

with open(FileEnsurer.config_kijiku_rules_path, "r") as kijiku_rules_file:
JsonHandler.current_kijiku_rules = json.load(kijiku_rules_file)
try:

with open(FileEnsurer.config_kijiku_rules_path, "r") as kijiku_rules_file:
JsonHandler.current_kijiku_rules = json.load(kijiku_rules_file)

JsonHandler.validate_json()
JsonHandler.validate_json()

except:
raise Exception("Invalid kijiku_rules.json file. Please check the file for errors. If you are unsure, delete the file and run Kudasai again.")

##-------------------start-of-setup_kairyou_for_cli()---------------------------------------------------------------------------------------------------------------------------------------------------------------------------

Expand Down
2 changes: 1 addition & 1 deletion modules/common/toolkit.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ class Toolkit():
"""

CURRENT_VERSION = "v3.0.0-beta"
CURRENT_VERSION = "v3.0.0-beta2"

##-------------------start-of-clear_console()---------------------------------------------------------------------------------------------------------------------------------------------------------------------------

Expand Down

0 comments on commit 3e39c2d

Please sign in to comment.