aboutsummaryrefslogtreecommitdiff
path: root/h-client
diff options
context:
space:
mode:
Diffstat (limited to 'h-client')
-rw-r--r--h-client/hclient.py15
1 files changed, 9 insertions, 6 deletions
diff --git a/h-client/hclient.py b/h-client/hclient.py
index 2ef8fff..9a22bb2 100644
--- a/h-client/hclient.py
+++ b/h-client/hclient.py
@@ -227,8 +227,10 @@ class hclient:
if self._submitFlag:
if self.client.isLogged():
self.applyChanges(None)
- self.client.submit(self.currentDeviceCode)
- self.synchronize(None)
+ if self.client.submit(self.currentDeviceCode):
+ self.synchronize(None)
+ else:
+ self.printErrors()
self._submitFlag = False
@@ -241,14 +243,15 @@ class hclient:
self.licenseNoticeWindow.destroy()
if self.client.isLogged():
- self.client.submit(self.currentDeviceCode)
- self.synchronize(None)
+ if self.client.submit(self.currentDeviceCode):
+ self.synchronize(None)
+ else:
+ self.printErrors()
else:
self._submitFlag = True
self.openLoginWindow(None)
-
- self.updateStatus()
+
#logout to the server
def logout(self,widget):