viewers: Fix import error when spice is missing

Signed-off-by: Cole Robinson <crobinso@redhat.com>
This commit is contained in:
Cole Robinson 2022-03-01 14:52:26 -05:00
parent 78e24fc986
commit 9db16377e8
1 changed files with 2 additions and 2 deletions

View File

@ -21,8 +21,8 @@ try:
gi.require_version('SpiceClientGtk', '3.0')
from gi.repository import SpiceClientGtk
from gi.repository import SpiceClientGLib
except (ValueError, ImportError) as SPICE_GTK_IMPORT_ERROR:
SPICE_GTK_IMPORT_ERROR = str(SPICE_GTK_IMPORT_ERROR)
except (ValueError, ImportError) as _SPICE_GTK_IMPORT_ERROR:
SPICE_GTK_IMPORT_ERROR = str(_SPICE_GTK_IMPORT_ERROR)
from virtinst import log