[Trac_gajim-plugins] [Gajim Plugins] #90: OTR Crashes Gajim after unexpected shutdown

Gajim Plugins trac at gajim.org
Wed Feb 19 17:29:17 CET 2014


#90: OTR Crashes Gajim after unexpected shutdown
---------------------+---------------------------------
Reporter:  Torrence  |       Owner:
    Type:  defect    |      Status:  new
Priority:  major     |   Component:  OffTheRecordPlugin
Keywords:            |  Blocked By:
Blocking:            |
---------------------+---------------------------------
 {{{
 /usr/share/gajim/src/common/passwords.py:108: UserWarning: multiple gnome
 keyring items found for account juggular.org; trying to use the first
 one...
   % account_name)
 /home/torrence/.local/share/gajim/plugins/gotr/ui.py:40: GtkWarning:
 Unknown property: GtkMenu.ubuntu-local
   self.B.add_from_file(self.GTK_BUILDER_FILE_PATH)
 Traceback (most recent call last):
   File "gajim.py", line 472, in <module>
     interface.run()
   File "/usr/share/gajim/src/gui_interface.py", line 2537, in run
     gajim.plugin_manager = plugins.PluginManager()
   File "/usr/share/gajim/src/plugins/helpers.py", line 129, in __call__
     cls.instance=super(Singleton, cls).__call__(*args,**kw)
   File "/usr/share/gajim/src/plugins/pluginmanager.py", line 105, in
 __init__
     self.add_plugins(pc)
   File "/usr/share/gajim/src/plugins/helpers.py", line 114, in wrapper
     result = f(*args, **kwargs)
   File "/usr/share/gajim/src/plugins/pluginmanager.py", line 144, in
 add_plugins
     self.add_plugin(plugin_class)
   File "/usr/share/gajim/src/plugins/helpers.py", line 114, in wrapper
     result = f(*args, **kwargs)
   File "/usr/share/gajim/src/plugins/pluginmanager.py", line 128, in
 add_plugin
     plugin = plugin_class()
   File "/usr/share/gajim/src/plugins/helpers.py", line 107, in wrapper
     result = f(*args, **kwargs)
   File "/usr/share/gajim/src/plugins/plugin.py", line 161, in __init__
     self.init()
   File "/home/torrence/.local/share/gajim/plugins/gotr/otrmodule.py", line
 292, in init
     self.us[acc].loadTrusts()
   File "/home/torrence/.local/share/gajim/plugins/gotr/otrmodule.py", line
 230, in loadTrusts
     ctx, acc, proto, fpr, trust = line[:-1].split('\t')
 ValueError: need more than 2 values to unpack
 }}}

 I was able to change the following lines in
 /usr/torrence/.local/share/gajim/plugins/gotr/otrmodule.py
 and band-aid the problem

 Line 230
 {{{
                         try:
                             ctx, acc, proto, fpr, trust =
 line[:-1].split('\t')
                         except:
                             continue
 }}}

--
Ticket URL: <http://trac-plugins.gajim.org/ticket/90>
Gajim Plugins <http://trac-plugins.gajim.org/>
Gajim Plugins


More information about the Trac_gajim-plugins mailing list