mirror of
https://github.com/ankitects/anki.git
synced 2025-09-24 16:56:36 -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):
|
||||
def __init__(self, message="", **data):
|
||||
self.data = data
|
||||
self.message = message
|
||||
self._message = message
|
||||
def __str__(self):
|
||||
m = self.message
|
||||
m = self._message
|
||||
if self.data:
|
||||
m += ": %s" % repr(self.data)
|
||||
return m
|
||||
|
|
Loading…
Reference in a new issue