changeset 7861f0a3cbdb in /home/hg/repos/gajim
details:http://hg.gajim.org/gajim?cmd=changeset;node=7861f0a3cbdb
description: fix exception handling in command system
diffstat:
src/command_system/framework.py | 2 +-
src/command_system/implementation/standard.py | 1 +
2 files changed, 2 insertions(+), 1 deletions(-)
diffs (23 lines):
diff -r 1909bdf00c56 -r 7861f0a3cbdb src/command_system/framework.py
--- a/src/command_system/framework.py Sun Nov 01 09:52:33 2009 +0100
+++ b/src/command_system/framework.py Sun Nov 01 13:50:34 2009 +0100
@@ -158,7 +158,7 @@
# in case if they was not set by the one who raised an exception.
except CommandError, error:
if not error.command and not error.name:
- raise CommandError(exception.message, self)
+ raise CommandError(error.message, self)
raise
# This one is a little bit too wide, but as Python does not have
diff -r 1909bdf00c56 -r 7861f0a3cbdb
src/command_system/implementation/standard.py
--- a/src/command_system/implementation/standard.py Sun Nov 01 09:52:33
2009 +0100
+++ b/src/command_system/implementation/standard.py Sun Nov 01 13:50:34
2009 +0100
@@ -22,6 +22,7 @@
from common import helpers
from common.exceptions import GajimGeneralException
+from ..errors import CommandError
from ..framework import CommandContainer, command, documentation
from ..mapping import generate_usage
_______________________________________________
Commits mailing list
[email protected]
http://lists.gajim.org/cgi-bin/listinfo/commits