Error when opening a XMPP link: TypeError: 'Mock' object is not iterable
Versions:
- OS: Linux 5.4.0-122-generic
- GTK Version: 3.24.34
- PyGObject Version: 3.42.1
- GLib Version : 2.72.3
- python-nbxmpp Version: 3.1.0
- Gajim Version: 1.4.6
Traceback
Traceback (most recent call last):
File "/app/lib/python3.9/site-packages/gajim/gtk/application.py", line 822, in _on_groupchat_join_action
open_window('GroupchatJoin', account=account, jid=jid)
File "/app/lib/python3.9/site-packages/gajim/gtk/util.py", line 679, in open_window
window = window_cls(**kwargs)
File "/app/lib/python3.9/site-packages/gajim/gtk/groupchat_join.py", line 100, in __init__
client.get_module('Discovery').disco_muc(
File "/app/lib/python3.9/site-packages/gajim/common/modules/util.py", line 115, in func_wrapper
task_.start()
File "/app/lib/python3.9/site-packages/nbxmpp/task.py", line 182, in start
self._next_step(self)
File "/app/lib/python3.9/site-packages/nbxmpp/task.py", line 229, in _next_step
self._set_finished()
File "/app/lib/python3.9/site-packages/nbxmpp/task.py", line 233, in _set_finished
self._invoke_callbacks()
File "/app/lib/python3.9/site-packages/nbxmpp/task.py", line 255, in _invoke_callbacks
callback(self)
File "/app/lib/python3.9/site-packages/gajim/gtk/util.py", line 377, in func_wrapper
return func(self, *args, **kwargs)
File "/app/lib/python3.9/site-packages/gajim/gtk/groupchat_join.py", line 124, in _disco_info_received
self._muc_info_box.set_from_disco_info(result.info)
File "/app/lib/python3.9/site-packages/gajim/gtk/groupchat_info.py", line 173, in set_from_disco_info
surface = contact.get_avatar(
File "/app/lib/python3.9/site-packages/gajim/common/modules/contacts.py", line 775, in get_avatar
return app.app.avatar_storage.get_surface(
File "/app/lib/python3.9/site-packages/gajim/gtk/avatar.py", line 396, in get_surface
letter = self._generate_letter(name)
File "/app/lib/python3.9/site-packages/gajim/gtk/avatar.py", line 569, in _generate_letter
for letter in name:
TypeError: 'Mock' object is not iterable
Steps to reproduce the problem
I were in this page https://conversations.im/#development I clicked in the link in the "Questions?" box (xmpp:conversations@conference.siacs.eu?join) and Firefox asked me to open the link with gajim. I confirmed and Gajim crashed