1
0
Fork 0
mirror of https://github.com/retspen/webvirtcloud synced 2025-07-31 12:41:08 +00:00

show socket error & check with is True

This commit is contained in:
catborise 2020-05-19 14:47:21 +03:00
parent 70d4e28795
commit 2dd908027e
2 changed files with 3 additions and 3 deletions

View file

@ -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(