Adds network toggling to the preferences, as well as a few tweaks to network service

This commit is contained in:
blitzmann
2014-08-15 01:00:31 -04:00
parent fa5edbb804
commit 0686b602c6
4 changed files with 86 additions and 23 deletions

View File

@@ -640,11 +640,11 @@ class APIView (wx.Panel):
try:
list = sChar.charList(self.Parent.Parent.getActiveCharacter(), self.inputID.GetLineText(0), self.inputKey.GetLineText(0))
except service.network.AuthenticationError, e:
self.stStatus.SetLabel("%s\nAuthentication failure. Please check keyID and vCode combination."%e)
self.stStatus.SetLabel("Authentication failure. Please check keyID and vCode combination.")
except service.network.TimeoutError, e:
self.stStatus.SetLabel("Request timed out. Please check network connectivity and/or proxy settings.")
except Exception, e:
self.stStatus.SetLabel("Error:\n%s"%e)
self.stStatus.SetLabel("Error:\n%s"%e.message)
else:
self.charChoice.Clear()
for charName in list: