mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-07-27 12:23:53 -06:00
qapi: Invoke exception superclass initializer
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>
This commit is contained in:
parent
7408fb67c0
commit
59b0054265
1 changed files with 2 additions and 0 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue