id

251

publisher

goffi@goffi.org/14eb1583-064e-4a79-b66e-0e44ffd74c35

title
cagou crashes when XMPP server is not online
reporter
 
created
05/04/2018, 14:35
updated
05/04/2018, 14:35
labels
cagou
type
bug
status
queued
priority
normal
milestone
0.7
severity
normal
body

if an account is trying to connect and can't (server not online for instance), Cagou crashed when we try to start a conversation: [sat_frontends.quick_frontend.quick_chat] now we print the history Traceback (most recent call last): File "main.py", line 23, in <module> cagou.run() File "/home/goffi/dev/cagou/src/cagou/__init__.py", line 33, in run host.run() File "/home/goffi/dev/cagou/src/cagou/core/cagou_main.py", line 329, in run self.app.run() File "/usr/lib/python2.7/site-packages/kivy/app.py", line 828, in run runTouchApp() File "/usr/lib/python2.7/site-packages/kivy/base.py", line 504, in runTouchApp EventLoop.window.mainloop() File "/usr/lib/python2.7/site-packages/kivy/core/window/window_sdl2.py", line 663, in mainloop self._mainloop() File "/usr/lib/python2.7/site-packages/kivy/core/window/window_sdl2.py", line 405, in _mainloop EventLoop.idle() File "/usr/lib/python2.7/site-packages/kivy/base.py", line 342, in idle self.dispatch_input() File "/usr/lib/python2.7/site-packages/kivy/base.py", line 327, in dispatch_input post_dispatch_input(*pop(0)) File "/usr/lib/python2.7/site-packages/kivy/base.py", line 293, in post_dispatch_input wid.dispatch('on_touch_up', me) File "kivy/_event.pyx", line 718, in kivy._event.EventDispatcher.dispatch (kivy/_event.c:8191) File "/usr/lib/python2.7/site-packages/kivy/uix/behaviors/button.py", line 179, in on_touch_up self.dispatch('on_release') File "kivy/_event.pyx", line 714, in kivy._event.EventDispatcher.dispatch (kivy/_event.c:8146) File "kivy/_event.pyx", line 1225, in kivy._event.EventObservers.dispatch (kivy/_event.c:14035) File "kivy/_event.pyx", line 1149, in kivy._event.EventObservers._dispatch (kivy/_event.c:13564) File "/home/goffi/dev/cagou/src/cagou/core/cagou_widget.py", line 35, in <lambda> self.bind(on_release=lambda btn: cagou_widget.switchWidget(plugin_info)) File "/home/goffi/dev/cagou/src/cagou/core/cagou_widget.py", line 66, in switchWidget new_widget = factory(plugin_info, None, iter(G.host.profiles)) File "/home/goffi/dev/cagou/src/cagou/plugins/plugin_wid_chat.py", line 232, in factory return G.host.widgets.getOrCreateWidget(cls, target, on_new_widget=None, on_existing_widget=C.WIDGET_RECREATE, profiles=profiles) File "/home/goffi/dev/lib/sat_frontends/quick_frontend/quick_widgets.py", line 207, in getOrCreateWidget widget = cls(*_args, **_kwargs) File "/home/goffi/dev/cagou/src/cagou/plugins/plugin_wid_chat.py", line 218, in __init__ self.postInit() File "/home/goffi/dev/lib/sat_frontends/quick_frontend/quick_chat.py", line 276, in postInit self.historyPrint(profile=self.profile) File "/home/goffi/dev/lib/sat_frontends/quick_frontend/quick_chat.py", line 440, in historyPrint special = self.host.contact_lists[self.profile].getCache(self.target, C.CONTACT_SPECIAL) File "/home/goffi/dev/lib/sat_frontends/quick_frontend/quick_contact_list.py", line 662, in __getitem__ return self._clist[profile] KeyError: dbus.String(u'goffi') zsh: exit 1 cagou_main_dev

comments_uri
xmpp:pubsub.goffi.org?;node=urn%3Axmpp%3Amicroblog%3A0%3Acomments%2Forg.salut-a-toi.tickets%3A0_R3jioUuhspqRB5Sje86hXK

You are not logged. You need to log in to comment.