prevent traceback. Fixes #7080
This commit is contained in:
parent
72bca44272
commit
b30b6dd94f
1 changed files with 3 additions and 1 deletions
|
@ -1432,6 +1432,8 @@ def get_proxy_info(account):
|
|||
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 @@ def download_image(account, attrs):
|
|||
proxy = get_proxy_info(account)
|
||||
if proxy and proxy['type'] in ('http', 'socks5'):
|
||||
return _get_img_proxy(attrs, proxy)
|
||||
return _get_img_direct(attrs)
|
||||
return _get_img_direct(attrs)
|
||||
|
|
Loading…
Add table
Reference in a new issue