Network settings GUI: be prepared for None return from getProxyAuthDetails()

This commit is contained in:
Alexey Min
2016-10-09 13:16:38 +05:00
parent 2b5535c5d1
commit 160de64135

View File

@@ -70,6 +70,8 @@ class PFNetworkPref ( PreferenceView):
self.nPort = self.settings.getPort()
self.nType = self.settings.getType()
self.nAuth = self.settings.getProxyAuthDetails() # tuple of (login, password)
if self.nAuth is None:
self.nAuth = ("", "") # we don't want None here, it should be a tuple
ptypeSizer = wx.BoxSizer( wx.HORIZONTAL )