Fixed an issue in the network proxy factory class. 5_0_x

Mon, 31 May 2010 15:16:22 +0200

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Mon, 31 May 2010 15:16:22 +0200
branch
5_0_x
changeset 318
e513e6d31858
parent 315
e44ee3cb994a
child 320
340a978859c6

Fixed an issue in the network proxy factory class.

E5Network/E5NetworkProxyFactory.py file | annotate | diff | comparison | revisions
--- a/E5Network/E5NetworkProxyFactory.py	Sun May 30 18:54:39 2010 +0200
+++ b/E5Network/E5NetworkProxyFactory.py	Mon May 31 15:16:22 2010 +0200
@@ -57,8 +57,9 @@
                                                   url.userName(), url.password())
                             proxyList = [proxy]
                             break
-                proxyList[0].setUser(Preferences.getUI("ProxyUser"))
-                proxyList[0].setPassword(Preferences.getUI("ProxyPassword"))
+                if proxyList:
+                    proxyList[0].setUser(Preferences.getUI("ProxyUser"))
+                    proxyList[0].setPassword(Preferences.getUI("ProxyPassword"))
                 return proxyList
             else:
                 host = Preferences.getUI("ProxyHost")

eric ide

mercurial