Debug for error logging

This commit is contained in:
BarsTiger
2022-03-01 15:12:39 +02:00
parent 5708f805ca
commit 7b24c59463
7 changed files with 10 additions and 8 deletions

View File

@@ -29,6 +29,6 @@ def change(oldpass, newpass):
gui.cpopup("Changing password",
handle(requests.put(horsy_vars.protocol + horsy_vars.server_url + '/users',
json={'auth': get_auth(True, login_ui, QtWidgets.QMainWindow()),
'password': newpass}).status_code)[1])
'password': newpass}).status_code)[0])
except:
gui.popup('Error', 'Unexpected error.')