diff options
| author | Lukáš Doktor | 2017-08-18 16:26:08 +0200 |
|---|---|---|
| committer | Eduardo Habkost | 2017-09-16 01:12:00 +0200 |
| commit | a004e249f035f8a0c859d1700abb4081c86f8c1f (patch) | |
| tree | 21a16fda9ba4015a937662d9fe96faf9619917bf /scripts/qmp | |
| parent | qemu.py: Simplify QMP key-conversion (diff) | |
| download | qemu-a004e249f035f8a0c859d1700abb4081c86f8c1f.tar.gz qemu-a004e249f035f8a0c859d1700abb4081c86f8c1f.tar.xz qemu-a004e249f035f8a0c859d1700abb4081c86f8c1f.zip | |
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>
Diffstat (limited to 'scripts/qmp')
0 files changed, 0 insertions, 0 deletions
