[libvirt] [PATCH python] virStream.sendAll() fix raising an undeclared var
Eric Blake
eblake at redhat.com
Sat Jan 11 22:09:49 UTC 2014
On 01/10/2014 08:18 PM, Doug Goldstein wrote:
> 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.
> ---
> libvirt-override-virStream.py | 1 +
> 1 file changed, 1 insertion(+)
ACK.
>
> 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:
>
--
Eric Blake eblake redhat com +1-919-301-3266
Libvirt virtualization library http://libvirt.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 604 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20140111/fe7d8d8a/attachment-0001.sig>
More information about the libvir-list
mailing list