1
0
mirror of https://github.com/virt-manager/virt-manager.git synced 2025-01-12 09:18:00 +03:00

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

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