From a0fea76ff2a4263691b96dbac07d3aa1adac81c1 Mon Sep 17 00:00:00 2001 From: Alexander Cherniuk Date: Mon, 30 Nov 2009 14:58:43 +0200 Subject: [PATCH] BaseException.message is deprecated since 2.6. Fixes #5465 --- src/command_system/errors.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/command_system/errors.py b/src/command_system/errors.py index 877a22acb..f687b72e3 100644 --- a/src/command_system/errors.py +++ b/src/command_system/errors.py @@ -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): """