1
0
mirror of https://gitlab.com/libvirt/libvirt-python.git synced 2025-08-01 00:21:59 +03:00

virStream.sendAll() fix raising an undeclared var

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.
This commit is contained in:
Doug Goldstein
2014-01-10 21:11:04 -06:00
parent 80c53727f3
commit de8361627c

View File

@ -76,6 +76,7 @@
try:
got = handler(self, 1024*64, opaque)
except:
e = sys.exc_info()[1]
try:
self.abort()
except: