diff options
author | Doug Goldstein <cardoe@cardoe.com> | 2014-01-10 21:11:04 -0600 |
---|---|---|
committer | Doug Goldstein <cardoe@cardoe.com> | 2014-01-10 21:16:34 -0600 |
commit | de8361627c4f3fa2a1f8dd164ef80c5f0a6a17f6 (patch) | |
tree | 16937c6bf3056d83fc6e545185b4f4bd3da9ddc4 /libvirt-override-virStream.py | |
parent | 80c53727f39581892250a9e481318d745f232bdb (diff) | |
download | libvirt-python-de8361627c4f3fa2a1f8dd164ef80c5f0a6a17f6.tar.gz |
virStream.sendAll() fix raising an undeclared varv1.2.1-rc2
The exception is raised from the variable 'e', which was undeclared in
this context. Used code that is compatible with old and new Python
versions.
Diffstat (limited to 'libvirt-override-virStream.py')
-rw-r--r-- | libvirt-override-virStream.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libvirt-override-virStream.py b/libvirt-override-virStream.py index 189d062..cd44314 100644 --- a/libvirt-override-virStream.py +++ b/libvirt-override-virStream.py @@ -76,6 +76,7 @@ try: got = handler(self, 1024*64, opaque) except: + e = sys.exc_info()[1] try: self.abort() except: |