mirror of
https://github.com/retspen/webvirtcloud.git
synced 2026-05-26 07:08:05 +00:00
show socket error & check with is True
This commit is contained in:
@@ -326,8 +326,8 @@ class wvmConnectionManager(object):
|
||||
socket_host.connect('/var/run/libvirt/libvirt-sock')
|
||||
socket_host.close()
|
||||
return True
|
||||
except Exception:
|
||||
return False
|
||||
except Exception as err:
|
||||
return err
|
||||
|
||||
|
||||
connection_manager = wvmConnectionManager(
|
||||
|
||||
Reference in New Issue
Block a user