[Florob] Make exception handling not cause an exception. Fixes #4125.

This commit is contained in:
js 2008-07-25 02:12:21 +00:00
parent 0653680203
commit 6cc8cd28e9
1 changed files with 1 additions and 1 deletions

View File

@ -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: