diff --git a/CodeBreak.py b/CodeBreak.py index 12ed8cc..8c5bc9e 100644 --- a/CodeBreak.py +++ b/CodeBreak.py @@ -2,12 +2,15 @@ # All rights reserved. # Tous droits réservés. +def errorModule(e): + print(f"An error occurred: {e}") + try: from config.config import * from config.menu import * from menu.discordAnim import discordAnim import os -except Exception as e : +except Exception as e: errorModule(e) terminalTitle('MainMenu') diff --git a/config/__pycache__/config.cpython-310.pyc b/config/__pycache__/config.cpython-310.pyc new file mode 100644 index 0000000..3ef8c57 Binary files /dev/null and b/config/__pycache__/config.cpython-310.pyc differ diff --git a/config/__pycache__/info.cpython-310.pyc b/config/__pycache__/info.cpython-310.pyc new file mode 100644 index 0000000..90ab8a5 Binary files /dev/null and b/config/__pycache__/info.cpython-310.pyc differ diff --git a/config/__pycache__/menu.cpython-310.pyc b/config/__pycache__/menu.cpython-310.pyc new file mode 100644 index 0000000..de0dd2e Binary files /dev/null and b/config/__pycache__/menu.cpython-310.pyc differ diff --git a/config/config.py b/config/config.py index 0a82690..05c1fe3 100644 --- a/config/config.py +++ b/config/config.py @@ -77,7 +77,7 @@ def setPromptColor(): promptColor = purple else: promptColor = white - print(f'{ERROR} Unknown prompt color: {data['promptColor']}. Using default white.') + print(f'{ERROR} Unknown prompt color: {data["promptColor"]}. Using default white.') Pause() def TIME_H(): diff --git a/menu/__pycache__/discordAnim.cpython-310.pyc b/menu/__pycache__/discordAnim.cpython-310.pyc new file mode 100644 index 0000000..bd0c57d Binary files /dev/null and b/menu/__pycache__/discordAnim.cpython-310.pyc differ