Skip to content

GitLab

  • Menu
Projects Groups Snippets
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • P python-nbxmpp
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 10
    • Issues 10
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 2
    • Merge requests 2
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Releases
  • Wiki
    • Wiki
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • gajim
  • python-nbxmpp
  • Issues
  • #66

Closed
Open
Created Feb 16, 2019 by Andrey Gursky@ag

[modules/omemo] AttributeError: 'NoneType' object has no attribute 'getTag'

Updated all to git master.

Versions

  • OS: Linux
  • GTK+ Version: 3.24.1
  • PyGObject Version: 3.30.4
  • GLib Version : 2.58.1
  • python-nbxmpp Version: 0.9.90.4
  • Gajim Version: 1.1.91.1+a944e7e6e19a

Traceback

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/gi/overrides/GLib.py", line 662, in <lambda>
    func_fdtransform = lambda _, cond, *data: callback(channel, cond, *data)
  File "/home/andrey/progs/python-nbxmpp.git/nbxmpp/idlequeue.py", line 555, in _process_events
    return IdleQueue._process_events(self, fd, flags)
  File "/home/andrey/progs/python-nbxmpp.git/nbxmpp/idlequeue.py", line 406, in _process_events
    obj.pollin()
  File "/home/andrey/progs/python-nbxmpp.git/nbxmpp/transports_nb.py", line 444, in pollin
    self._do_receive()
  File "/home/andrey/progs/python-nbxmpp.git/nbxmpp/transports_nb.py", line 665, in _do_receive
    self._on_receive(received)
  File "/home/andrey/progs/python-nbxmpp.git/nbxmpp/transports_nb.py", line 679, in _on_receive
    self.on_receive(data)
  File "/home/andrey/progs/python-nbxmpp.git/nbxmpp/dispatcher_nb.py", line 658, in _WaitForData
    resp(self._owner, _iq, **args)
  File "/home/andrey/progs/python-nbxmpp.git/nbxmpp/util.py", line 173, in func_wrapper
    result = func(self, stanza, **kwargs)
  File "/home/andrey/progs/python-nbxmpp.git/nbxmpp/modules/omemo.py", line 217, in _devicelist_received
    return self._parse_devicelist(item)
  File "/home/andrey/progs/python-nbxmpp.git/nbxmpp/modules/omemo.py", line 174, in _parse_devicelist
    list_node = item.getTag('list', namespace=NS_OMEMO_TEMP)
AttributeError: 'NoneType' object has no attribute 'getTag'

Gajim still queries device list from many irrelevant users, e.g.:

02/16/2019 00:58:13 (D) nbxmpp.smacks: IN, presence
02/16/2019 00:58:13 (I) gajim.plugin_system.omemo: SOME_JID@SOME_SERVER not in Roster, query devicelist...

Since tracebacks, for which GUI pop-up appears, are printed not using logging module they do not appear in the redirected output to the file synchronously. That's why having log I still cannot see after what stanza this happened.

P.S. feel free to add "+git hash" to the python-nbxmpp version like for gajim.

Assignee
Assign to
Time tracking