summaryrefslogtreecommitdiffstats
path: root/libvir.py
diff options
context:
space:
mode:
Diffstat (limited to 'libvir.py')
-rw-r--r--libvir.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/libvir.py b/libvir.py
index 3a38898..784152a 100644
--- a/libvir.py
+++ b/libvir.py
@@ -15,13 +15,17 @@ import types
# The root of all libvirt errors.
class libvirtError(Exception):
- def __init__(self, msg, conn=None, dom=None, net=None):
+ def __init__(self, msg, conn=None, dom=None, net=None, pool=None, vol=None):
Exception.__init__(self, msg)
if dom is not None:
conn = dom._conn
elif net is not None:
conn = net._conn
+ elif pool is not None:
+ conn = pool._conn
+ elif vol is not None:
+ conn = vol._conn
if conn is None:
self.err = virGetLastError()