]> git.proxmox.com Git - mirror_qemu.git/commit
qemu.py: Use custom exceptions rather than Exception
authorLukáš Doktor <ldoktor@redhat.com>
Fri, 18 Aug 2017 14:26:08 +0000 (16:26 +0200)
committerEduardo Habkost <ehabkost@redhat.com>
Fri, 15 Sep 2017 23:12:00 +0000 (20:12 -0300)
commita004e249f035f8a0c859d1700abb4081c86f8c1f
tree21a16fda9ba4015a937662d9fe96faf9619917bf
parent41f714b190ffff7fefb3ad090bc02d089e4c7bda
qemu.py: Use custom exceptions rather than Exception

The naked Exception should not be widely used. It makes sense to be a
bit more specific and use better-suited custom exceptions. As a benefit
we can store the full reply in the exception in case someone needs it
when catching the exception.

Signed-off-by: Lukáš Doktor <ldoktor@redhat.com>
Reviewed-by: Eduardo Habkost <ehabkost@redhat.com>
Message-Id: <20170818142613.32394-6-ldoktor@redhat.com>
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
scripts/qemu.py