Debug changing email and installation

This commit is contained in:
BarsTiger
2022-03-01 20:47:20 +02:00
parent 005fbb47f9
commit cdd5892990
2 changed files with 4 additions and 2 deletions

View File

@@ -23,8 +23,7 @@ def change(email):
try:
r_code = handle(requests.put(horsy_vars.protocol + horsy_vars.server_url + '/users',
json={'auth': auth, 'email': email}).status_code)
if r_code[1] not in [200, 201]:
gui.cpopup("Error", r_code[0])
gui.cpopup("Changing email", r_code[0])
except:
gui.cpopup('Error', 'Unexpected error.')
threading.Thread(target=change_in_new_thread).start()