[Florob] Make exception handling not cause an exception. Fixes #4125.
This commit is contained in:
parent
0653680203
commit
6cc8cd28e9
|
@ -564,7 +564,7 @@ class HtmlHandler(xml.sax.handler.ContentHandler):
|
||||||
try:
|
try:
|
||||||
f = urllib2.urlopen(attrs['src'])
|
f = urllib2.urlopen(attrs['src'])
|
||||||
except Exception, ex:
|
except Exception, ex:
|
||||||
gajim.log.debug(str('Error loading image %s ' % attrs['src'] + ex))
|
gajim.log.debug('Error loading image %s ' % attrs['src'] + str(ex)))
|
||||||
pixbuf = None
|
pixbuf = None
|
||||||
alt = attrs.get('alt', 'Broken image')
|
alt = attrs.get('alt', 'Broken image')
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Reference in New Issue