From 691bbeb12b9977fd5c340ea3f31da7fa1b572c82 Mon Sep 17 00:00:00 2001 From: Takanori MATSUURA Date: Fri, 31 Jul 2009 22:01:46 +0200 Subject: [PATCH] Bug 505367 - Improve python compatibility in extensions/python/xpcom/__init__.py; r=mhammond --- extensions/python/xpcom/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/extensions/python/xpcom/__init__.py b/extensions/python/xpcom/__init__.py index cbfd59e61ed7..15ae60eb7ac4 100644 --- a/extensions/python/xpcom/__init__.py +++ b/extensions/python/xpcom/__init__.py @@ -51,7 +51,7 @@ class Exception(exceptions.Exception): def __init__(self, errno, message = None): assert int(errno) == errno, "The errno param must be an integer" self.errno = errno - self.message = message + self.msg = message exceptions.Exception.__init__(self, errno) def __str__(self): if not hr_map: @@ -59,7 +59,7 @@ class Exception(exceptions.Exception): for name, val in nsError.__dict__.items(): if type(val)==type(0): hr_map[val] = name - message = self.message + message = self.msg if message is None: message = hr_map.get(self.errno) if message is None: