mirror of
https://github.com/yuzu-emu/unicorn.git
synced 2025-03-24 22:15:07 +00: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. Backports commit 59b00542659c8947f9d4e8c28d2d528ab3ab61a5 from qemu
This commit is contained in:
parent
de2b67e528
commit
07f0fa3ee9
|
@ -81,6 +81,7 @@ def error_path(parent):
|
||||||
|
|
||||||
class QAPISchemaError(Exception):
|
class QAPISchemaError(Exception):
|
||||||
def __init__(self, schema, msg):
|
def __init__(self, schema, msg):
|
||||||
|
Exception.__init__(self)
|
||||||
self.fname = schema.fname
|
self.fname = schema.fname
|
||||||
self.msg = msg
|
self.msg = msg
|
||||||
self.col = 1
|
self.col = 1
|
||||||
|
@ -98,6 +99,7 @@ class QAPISchemaError(Exception):
|
||||||
|
|
||||||
class QAPIExprError(Exception):
|
class QAPIExprError(Exception):
|
||||||
def __init__(self, expr_info, msg):
|
def __init__(self, expr_info, msg):
|
||||||
|
Exception.__init__(self)
|
||||||
self.info = expr_info
|
self.info = expr_info
|
||||||
self.msg = msg
|
self.msg = msg
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue