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 :| -- libvir-list mailing list libvir-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/libvir-list