Debug changing email and installation
This commit is contained in:
@@ -23,8 +23,7 @@ def change(email):
|
|||||||
try:
|
try:
|
||||||
r_code = handle(requests.put(horsy_vars.protocol + horsy_vars.server_url + '/users',
|
r_code = handle(requests.put(horsy_vars.protocol + horsy_vars.server_url + '/users',
|
||||||
json={'auth': auth, 'email': email}).status_code)
|
json={'auth': auth, 'email': email}).status_code)
|
||||||
if r_code[1] not in [200, 201]:
|
gui.cpopup("Changing email", r_code[0])
|
||||||
gui.cpopup("Error", r_code[0])
|
|
||||||
except:
|
except:
|
||||||
gui.cpopup('Error', 'Unexpected error.')
|
gui.cpopup('Error', 'Unexpected error.')
|
||||||
threading.Thread(target=change_in_new_thread).start()
|
threading.Thread(target=change_in_new_thread).start()
|
||||||
|
|||||||
@@ -126,6 +126,9 @@ def install(package):
|
|||||||
download_ui.logs_box.append("")
|
download_ui.logs_box.append("")
|
||||||
download_ui.logs_box.moveCursor(QtGui.QTextCursor.End)
|
download_ui.logs_box.moveCursor(QtGui.QTextCursor.End)
|
||||||
|
|
||||||
|
if r['url'].split('.')[-1] == 'zip':
|
||||||
|
os.remove('{2}apps/{0}/{1}'.format(r['name'], r['url'].split('/')[-1], horsy_vars.horsypath))
|
||||||
|
|
||||||
download_ui.logs_box.append("")
|
download_ui.logs_box.append("")
|
||||||
download_ui.logs_box.append("Generating launch script")
|
download_ui.logs_box.append("Generating launch script")
|
||||||
with open('{1}apps/{0}.bat'.format(r['name'], horsy_vars.horsypath), 'w') as f:
|
with open('{1}apps/{0}.bat'.format(r['name'], horsy_vars.horsypath), 'w') as f:
|
||||||
|
|||||||
Reference in New Issue
Block a user