mirror of
https://github.com/codex-storage/deluge.git
synced 2025-02-18 06:16:29 +00:00
Replace Exception with GError in filtertreeview
This commit is contained in:
parent
1d9b550e35
commit
836178a0da
@ -38,6 +38,7 @@ import os
|
|||||||
import gtk
|
import gtk
|
||||||
import logging
|
import logging
|
||||||
import warnings
|
import warnings
|
||||||
|
from gobject import GError
|
||||||
|
|
||||||
import deluge.component as component
|
import deluge.component as component
|
||||||
import deluge.common
|
import deluge.common
|
||||||
@ -294,7 +295,7 @@ class FilterTreeView(component.Component):
|
|||||||
if pix:
|
if pix:
|
||||||
try:
|
try:
|
||||||
return gtk.gdk.pixbuf_new_from_file(deluge.common.get_pixmap("%s16.png" % pix))
|
return gtk.gdk.pixbuf_new_from_file(deluge.common.get_pixmap("%s16.png" % pix))
|
||||||
except Exception, e:
|
except GError, e:
|
||||||
log.warning(e)
|
log.warning(e)
|
||||||
return self.get_transparent_pix(16, 16)
|
return self.get_transparent_pix(16, 16)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user