changeset 191e7d74f635 in /home/hg/repos/gajim
details:http://hg.gajim.org/gajim?cmd=changeset;node=191e7d74f635
description: prevent traceback. Fixes #7080
diffstat:
src/common/helpers.py | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diffs (19 lines):
diff -r 879184d7d82c -r 191e7d74f635 src/common/helpers.py
--- a/src/common/helpers.py Sat Jan 21 16:32:52 2012 +0100
+++ b/src/common/helpers.py Sun Jan 22 00:28:14 2012 +0100
@@ -1432,6 +1432,8 @@
if p:
proxy = {}
proxyptr = gajim.config.get_per('proxies', p)
+ if not proxyptr:
+ return proxy
for key in proxyptr.keys():
proxy[key] = proxyptr[key][1]
return proxy
@@ -1542,4 +1544,4 @@
proxy = get_proxy_info(account)
if proxy and proxy['type'] in ('http', 'socks5'):
return _get_img_proxy(attrs, proxy)
- return _get_img_direct(attrs)
\ No newline at end of file
+ return _get_img_direct(attrs)
_______________________________________________
Commits mailing list
[email protected]
http://lists.gajim.org/cgi-bin/listinfo/commits