changeset 30dbd467ae88 in /home/hg/repos/gajim

details:http://hg.gajim.org/gajim?cmd=changeset;node=30dbd467ae88
description: Prevent traceback

diffstat:

 src/plugins/pluginmanager.py |  5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diffs (15 lines):

diff -r fba52fd936cc -r 30dbd467ae88 src/plugins/pluginmanager.py
--- a/src/plugins/pluginmanager.py      Fri Jan 06 09:45:11 2012 +0100
+++ b/src/plugins/pluginmanager.py      Sat Jan 07 12:00:04 2012 +0400
@@ -475,7 +475,10 @@
 
                 except TypeError, type_error:
                     # set plugin localization
-                    module_attr._ = _
+                    try:
+                        module_attr._ = _
+                    except AttributeError, type_error:
+                        pass
                 except ConfigParser.NoOptionError, type_error:
                     # all fields are required
                     log.debug('%s : %s' % (module_attr_name,
_______________________________________________
Commits mailing list
Commits@gajim.org
http://lists.gajim.org/cgi-bin/listinfo/commits

Reply via email to