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
......@@ -20,7 +20,7 @@ try:
from gi.repository import Rsvg
import cairo
except (ImportError, ValueError):
except (ImportError, ValueError, AttributeError):
HAS_RSVG = False
from 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