Ticket #4125: representing.diff

File representing.diff, 510 bytes (added by Florob, 4 months ago)

Make exception handling not cause an exception

  • src/htmltextview.py

    diff --git a/src/htmltextview.py b/src/htmltextview.py
    index 11d336c..66fa0a1 100644
    a b  
    564564                        try:  
    565565                                f = urllib2.urlopen(attrs['src'])  
    566566                        except Exception, ex:  
    567                                 gajim.log.debug(str('Error loading image %s ' % attrs['src'] + ex))  
     567                                gajim.log.debug('Error loading image %s ' % attrs['src']  + str(ex))) 
    568568                                pixbuf = None  
    569569                                alt = attrs.get('alt', 'Broken image')  
    570570                        else: