Commit b7fc562c authored by Link Mauve's avatar Link Mauve

Also skip librsvg import on AttributeError

In the case python-gobject isn’t installed, but another package (such as
libibus) provides overrides, the gi module will still get imported fine
despite being empty, resulting in a traceback. To prevent this, we also
catch AttributeError so that gi.require_version can fail.
parent 1a825de0
Pipeline #2079 passed with stages
in 2 minutes and 28 seconds
......@@ -20,7 +20,7 @@ try:
from gi.repository import Rsvg
import cairo
HAS_RSVG = True
except (ImportError, ValueError):
except (ImportError, ValueError, AttributeError):
HAS_RSVG = False
from poezio.windows.base_wins import Win
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment