mirror of
https://github.com/caronc/apprise.git
synced 2025-02-10 15:30:35 +01:00
Fixes AttributeError while importing gi
(#177)
This commit is contained in:
parent
3b19f43244
commit
cc8fae4c73
@ -89,7 +89,7 @@ try:
|
|||||||
from gi.repository import GdkPixbuf
|
from gi.repository import GdkPixbuf
|
||||||
NOTIFY_DBUS_IMAGE_SUPPORT = True
|
NOTIFY_DBUS_IMAGE_SUPPORT = True
|
||||||
|
|
||||||
except (ImportError, ValueError):
|
except (ImportError, ValueError, AttributeError):
|
||||||
# No problem; this will get caught in outer try/catch
|
# No problem; this will get caught in outer try/catch
|
||||||
|
|
||||||
# A ValueError will get thrown upon calling gi.require_version() if
|
# A ValueError will get thrown upon calling gi.require_version() if
|
||||||
|
@ -49,7 +49,7 @@ try:
|
|||||||
# We're good to go!
|
# We're good to go!
|
||||||
NOTIFY_GNOME_SUPPORT_ENABLED = True
|
NOTIFY_GNOME_SUPPORT_ENABLED = True
|
||||||
|
|
||||||
except (ImportError, ValueError):
|
except (ImportError, ValueError, AttributeError):
|
||||||
# No problem; we just simply can't support this plugin; we could
|
# No problem; we just simply can't support this plugin; we could
|
||||||
# be in microsoft windows, or we just don't have the python-gobject
|
# be in microsoft windows, or we just don't have the python-gobject
|
||||||
# library available to us (or maybe one we don't support)?
|
# library available to us (or maybe one we don't support)?
|
||||||
|
Loading…
Reference in New Issue
Block a user