]> git.proxmox.com Git - mirror_qemu.git/commitdiff
qapi: Invoke exception superclass initializer
authorEric Blake <eblake@redhat.com>
Tue, 29 Sep 2015 22:21:01 +0000 (16:21 -0600)
committerMarkus Armbruster <armbru@redhat.com>
Mon, 12 Oct 2015 16:44:54 +0000 (18:44 +0200)
pylint recommends that every exception class should explicitly
invoke the superclass __init__, even though things seem to work
fine without it.

Signed-off-by: Eric Blake <eblake@redhat.com>
Message-Id: <1443565276-4535-4-git-send-email-eblake@redhat.com>
Signed-off-by: Markus Armbruster <armbru@redhat.com>
scripts/qapi.py

index 362e0076e99b1c9b3eeffd7124fd3b74b2aaa381..a2d869efa7b85322a08e171427ffb76b5ba301f8 100644 (file)
@@ -81,6 +81,7 @@ def error_path(parent):
 
 class QAPISchemaError(Exception):
     def __init__(self, schema, msg):
+        Exception.__init__(self)
         self.fname = schema.fname
         self.msg = msg
         self.col = 1
@@ -98,6 +99,7 @@ class QAPISchemaError(Exception):
 
 class QAPIExprError(Exception):
     def __init__(self, expr_info, msg):
+        Exception.__init__(self)
         self.info = expr_info
         self.msg = msg