changeset 76cf8f926de1 in /home/hg/repos/gajim

details:http://hg.gajim.org/gajim?cmd=changeset;node=76cf8f926de1
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 9d47da956491 -r 76cf8f926de1 src/command_system/framework.py
--- a/src/command_system/framework.py   Sun Nov 01 12:40:29 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 9d47da956491 -r 76cf8f926de1 
src/command_system/implementation/standard.py
--- a/src/command_system/implementation/standard.py     Sun Nov 01 12:40:29 
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

Reply via email to