From 3f4cfd5c88fb61b126a921e81f1e91a4bc91609e Mon Sep 17 00:00:00 2001 From: Calum Lind Date: Sun, 17 Feb 2013 18:36:57 +0000 Subject: [PATCH] Replace Exception with GError in filtertreeview --- deluge/ui/gtkui/filtertreeview.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/deluge/ui/gtkui/filtertreeview.py b/deluge/ui/gtkui/filtertreeview.py index 1e5bb1a3d..e9d2ba6aa 100644 --- a/deluge/ui/gtkui/filtertreeview.py +++ b/deluge/ui/gtkui/filtertreeview.py @@ -39,6 +39,7 @@ import gtk import gtk.glade import pkg_resources import warnings +from gobject import GError import deluge.component as component import deluge.common @@ -291,7 +292,7 @@ class FilterTreeView(component.Component): if pix: try: return gtk.gdk.pixbuf_new_from_file(deluge.common.get_pixmap("%s16.png" % pix)) - except Exception, e: + except GError, e: log.warning(e) return self.get_transparent_pix(16, 16)