From 4c541e0a506ca9be4ec3e85df1895ff3285c64b9 Mon Sep 17 00:00:00 2001 From: mrmarcus007 Date: Wed, 24 May 2023 17:04:11 +0100 Subject: [PATCH] commit --- Overclock.py | 18 +++--------------- 1 file changed, 3 insertions(+), 15 deletions(-) diff --git a/Overclock.py b/Overclock.py index b0f8b2e..af54564 100644 --- a/Overclock.py +++ b/Overclock.py @@ -255,18 +255,6 @@ def export(): errorhandler(error, funchtion) def errorhandler(error, funchtion): - options = { - '1': start, - '2': load, - '3': Menu, - '4': editor, - '5': configdisplay, - '6': export, - '7': existstage1, - '8': existstage1, - '9': load, - '10': exit, - } if error == "1": print(" A language baised error has occured \n Ein sprachbasierter Fehler ist aufgetreten") time.sleep(1.5987654321) @@ -278,7 +266,7 @@ def errorhandler(error, funchtion): time.sleep(1.5987654321) funchtionhandler(funchtion) -def funchtionhandler(funchtion): +def funchtionhandler(task): options = { '1': start, '2': load, @@ -291,8 +279,8 @@ def funchtionhandler(funchtion): '9': load, '10': exit, } - if funchtion in options: - options[funchtion]() + if task in options: + options[task]() def existstage1():