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:
@ -76,6 +76,7 @@
|
||||
try:
|
||||
got = handler(self, 1024*64, opaque)
|
||||
except:
|
||||
e = sys.exc_info()[1]
|
||||
try:
|
||||
self.abort()
|
||||
except:
|
||||
|
Reference in New Issue
Block a user