[libvirt] [sandbox 10/11] virt-sandbox-image: fix exception catching

Daniel P. Berrange berrange at redhat.com
Wed Sep 23 08:30:22 UTC 2015


On Wed, Sep 23, 2015 at 09:53:40AM +0200, Cédric Bosdonnat wrote:
> Catch the exception in the main to avoid problems when auto-calling
> another function that fails. For example if run calls create and that
> one fails, run would have ignored the error.
> ---
>  libvirt-sandbox/image/cli.py | 156 ++++++++++++++++++++-----------------------
>  1 file changed, 73 insertions(+), 83 deletions(-)

ACK, this is much simpler and avoids repetition.


Regards,
Daniel
-- 
|: http://berrange.com      -o-    http://www.flickr.com/photos/dberrange/ :|
|: http://libvirt.org              -o-             http://virt-manager.org :|
|: http://autobuild.org       -o-         http://search.cpan.org/~danberr/ :|
|: http://entangle-photo.org       -o-       http://live.gnome.org/gtk-vnc :|




More information about the libvir-list mailing list