viewers: Fix import error when spice is missing
Signed-off-by: Cole Robinson <crobinso@redhat.com>
This commit is contained in:
parent
78e24fc986
commit
9db16377e8
|
@ -21,8 +21,8 @@ try:
|
||||||
gi.require_version('SpiceClientGtk', '3.0')
|
gi.require_version('SpiceClientGtk', '3.0')
|
||||||
from gi.repository import SpiceClientGtk
|
from gi.repository import SpiceClientGtk
|
||||||
from gi.repository import SpiceClientGLib
|
from gi.repository import SpiceClientGLib
|
||||||
except (ValueError, ImportError) as SPICE_GTK_IMPORT_ERROR:
|
except (ValueError, ImportError) as _SPICE_GTK_IMPORT_ERROR:
|
||||||
SPICE_GTK_IMPORT_ERROR = str(SPICE_GTK_IMPORT_ERROR)
|
SPICE_GTK_IMPORT_ERROR = str(_SPICE_GTK_IMPORT_ERROR)
|
||||||
|
|
||||||
from virtinst import log
|
from virtinst import log
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue