mirror of
https://github.com/ankitects/anki.git
synced 2025-09-25 01:06:35 -04:00
rename instance var to avoid deprecation warning
This commit is contained in:
parent
1d24158f90
commit
796ad5962b
1 changed files with 2 additions and 2 deletions
|
@ -11,9 +11,9 @@ __docformat__ = 'restructuredtext'
|
||||||
class Error(Exception):
|
class Error(Exception):
|
||||||
def __init__(self, message="", **data):
|
def __init__(self, message="", **data):
|
||||||
self.data = data
|
self.data = data
|
||||||
self.message = message
|
self._message = message
|
||||||
def __str__(self):
|
def __str__(self):
|
||||||
m = self.message
|
m = self._message
|
||||||
if self.data:
|
if self.data:
|
||||||
m += ": %s" % repr(self.data)
|
m += ": %s" % repr(self.data)
|
||||||
return m
|
return m
|
||||||
|
|
Loading…
Reference in a new issue