From bbd68cb789ae6a06908771e17d48ee355b7d2aab Mon Sep 17 00:00:00 2001 From: rafid-dev <121599804+rafid-dev@users.noreply.github.com> Date: Fri, 19 May 2023 19:56:11 +0600 Subject: [PATCH] Delete machine.txt if error "Bad Machine Id" is thrown (#116) --- Client/Client.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Client/Client.py b/Client/Client.py index 23aca49..da93550 100644 --- a/Client/Client.py +++ b/Client/Client.py @@ -531,6 +531,8 @@ def server_configure_worker(arguments): # The 'error' header is included if there was an issue if 'error' in response: print('[Error] %s\n' % (response['error'])) + if (response['error'].lower() == "bad machine id"): + os.remove('./machine.txt') sys.exit() # Save the machine id, to avoid re-registering every time