mirror of
https://github.com/virt-manager/virt-manager.git
synced 2025-02-25 18:55:27 -06:00
virt-manager: Avoid a deprecation warning on f20
This commit is contained in:
parent
a2e5206730
commit
476ecf7fee
@ -37,7 +37,12 @@ from virtinst import cli as virtinstcli
|
|||||||
from virtcli import cliutils, cliconfig
|
from virtcli import cliutils, cliconfig
|
||||||
|
|
||||||
|
|
||||||
GObject.threads_init()
|
try:
|
||||||
|
# Avoid a deprecation warning about threads_init
|
||||||
|
import gi
|
||||||
|
gi.check_version("3.9.1")
|
||||||
|
except (ValueError, AttributeError):
|
||||||
|
GObject.threads_init()
|
||||||
|
|
||||||
|
|
||||||
def _show_startup_error(msg, details):
|
def _show_startup_error(msg, details):
|
||||||
|
Loading…
Reference in New Issue
Block a user