Re: [PATCH python] virStream.sendAll() fix raising an undeclared var

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

Attachment: signature.asc
Description: OpenPGP digital signature

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list

[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]