mirror of
https://github.com/virt-manager/virt-manager.git
synced 2025-02-03 13:47:18 +03:00
connection: Another py3 exception variable fix
This commit is contained in:
parent
60968fa259
commit
c174b5509f
@ -1030,11 +1030,13 @@ class vmmConnection(vmmGObject):
|
||||
warnconsole = False
|
||||
libvirt_error_code = None
|
||||
libvirt_error_message = None
|
||||
exc = None
|
||||
|
||||
try:
|
||||
self._backend.open(self._do_creds_password)
|
||||
return True, None
|
||||
except Exception as exc:
|
||||
except Exception as e:
|
||||
exc = e
|
||||
tb = "".join(traceback.format_exc())
|
||||
if isinstance(exc, libvirt.libvirtError):
|
||||
# pylint: disable=no-member
|
||||
|
Loading…
x
Reference in New Issue
Block a user