[PATCH libvirt-python] examples: Fix connection error handling

Daniel P. Berrangé berrange at redhat.com
Mon Apr 20 12:22:44 UTC 2020


On Mon, Apr 20, 2020 at 08:05:00AM +0200, Philipp Hahn wrote:
> libvirt.open*() does not return None but raises an exception
> 
> Signed-off-by: Philipp Hahn <hahn at univention.de>
> ---
>  examples/dominfo.py    | 5 +++--
>  examples/domrestore.py | 5 +++--
>  examples/domsave.py    | 5 +++--
>  examples/domstart.py   | 5 +++--
>  examples/esxlist.py    | 6 +++---
>  5 files changed, 15 insertions(+), 11 deletions(-)

Reviewed-by: Daniel P. Berrangé <berrange at redhat.com>


and pushed to git

Regards,
Daniel
-- 
|: https://berrange.com      -o-    https://www.flickr.com/photos/dberrange :|
|: https://libvirt.org         -o-            https://fstop138.berrange.com :|
|: https://entangle-photo.org    -o-    https://www.instagram.com/dberrange :|




More information about the libvir-list mailing list