Skip to content
Snippets Groups Projects
Commit a0fea76f authored by Alexander Cherniuk's avatar Alexander Cherniuk
Browse files

BaseException.message is deprecated since 2.6. Fixes #5465

parent 684f45b1
No related branches found
No related tags found
No related merge requests found
......@@ -20,13 +20,15 @@ class BaseError(Exception):
"""
def __init__(self, message, command=None, name=None):
self.message = message
self.command = command
self.name = name
if command and not name:
self.name = command.first_name
super(BaseError, self).__init__(message)
super(BaseError, self).__init__()
class DefinitionError(BaseError):
"""
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment