catch and log 'glib.GError: Unrecognized image file format' error

This commit is contained in:
Calum Lind 2012-02-19 00:54:33 +00:00
parent ae9eb15d5c
commit eceaa0ae4f
1 changed files with 4 additions and 1 deletions

View File

@ -53,8 +53,11 @@ def get_logo(size):
return gtk.gdk.pixbuf_new_from_file_at_size(deluge.common.get_pixmap("deluge.png"), \
size, size)
else:
return gtk.gdk.pixbuf_new_from_file_at_size(deluge.common.get_pixmap("deluge.svg"), \
try:
return gtk.gdk.pixbuf_new_from_file_at_size(deluge.common.get_pixmap("deluge.svg"), \
size, size)
except Exception, e:
log.warning(e)
def build_menu_radio_list(value_list, callback, pref_value=None,
suffix=None, show_notset=False, notset_label=None, notset_lessthan=0,