scripts/qmp: Use Python 2.6 "except E as ..." syntax

PEP 8 calls for it, because it's forward compatible with Python 3.
Supported since Python 2.6, which we require (commit fec2103).

Signed-off-by: Markus Armbruster <armbru@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Acked-by: Stefan Hajnoczi <stefanha@redhat.com>
Message-Id: <1450425164-24969-3-git-send-email-armbru@redhat.com>
This commit is contained in:
Markus Armbruster 2015-12-18 08:52:42 +01:00
parent 291928a80f
commit cf6c63456b
4 changed files with 6 additions and 6 deletions

View file

@ -259,7 +259,7 @@ def main(address, cmd, args):
try:
client = QemuGuestAgentClient(address)
except QemuGuestAgent.error, e:
except QemuGuestAgent.error as e:
import errno
print(e)