Opened 10 years ago

Closed 10 years ago

Last modified 6 months ago

#1938 closed bug (Fixed)

AttributeError: 'NoneType' object has no attribute 'send_request'

Reported by: Cas Owned by:
Priority: minor Milestone: 1.3.4
Component: GTK UI Version: 1.3.1
Keywords: Cc:

Description (last modified by Cas)

Found two bugs with the same AttributeError that need investigating.

https://bugzilla.redhat.com/show_bug.cgi?id=666616

https://bugs.launchpad.net/ubuntu/+source/deluge/+bug/756388

Traceback (most recent call last):
  File "/usr/lib/pymodules/python2.7/deluge/ui/gtkui/menubar.py", line 256, in on_menuitem_quitdaemon_activate
    self.window.quit(shutdown=True)
  File "/usr/lib/pymodules/python2.7/deluge/ui/gtkui/mainwindow.py", line 163, in quit
    client.daemon.shutdown()
  File "/usr/lib/pymodules/python2.7/deluge/ui/client.py", line 504, in __call__
    return self.daemon.call(self.base, *args, **kwargs)
  File "/usr/lib/pymodules/python2.7/deluge/ui/client.py", line 310, in call
    self.protocol.send_request(request)
AttributeError: 'NoneType' object has no attribute 'send_request'

Change History (4)

comment:1 Changed 10 years ago by Cas

  • Description modified (diff)
  • Milestone changed from 1.3.4 to 1.3.x
  • Priority changed from major to minor

comment:2 Changed 10 years ago by Cas

  • Resolution set to fixed
  • Status changed from new to closed

Unable to replicate and I can only surmise that deluged has already shutdown by the time this request is sent however I added a exception statement to prevent crashing the client.

d3c3d64c

comment:3 Changed 10 years ago by Cas

  • Milestone changed from 1.3.x to 1.3.4

comment:4 Changed 6 months ago by danger89

Looks like it has not been fixed. I still have this issue with version:

deluged 2.0.3-2-201906121747-ubuntu18.04.1

libtorrent: 1.1.5.0

Python: 3.6.9

OS: Linux 5.8.0-38-generic

13:16:05 [ERROR   ][deluge.ui.web.json_api     :168 ] Error calling method `web.get_torrent_status`: 'NoneType' object has no attribute 'call'
13:16:05 [ERROR   ][deluge.ui.web.json_api     :1343] 'NoneType' object has no attribute 'call'
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/deluge/ui/web/json_api.py", line 160, in _handle_request
    result = self._exec_local(method, params, request)
  File "/usr/lib/python3/dist-packages/deluge/ui/web/json_api.py", line 122, in _exec_local
    return meth(*params)
  File "/usr/lib/python3/dist-packages/deluge/ui/web/json_api.py", line 640, in get_torrent_status
    d = component.get('SessionProxy').get_torrent_status(torrent_id, keys)
  File "/usr/lib/python3/dist-packages/deluge/ui/sessionproxy.py", line 159, in get_torrent_status
    d = client.core.get_torrent_status(torrent_id, keys, True)
  File "/usr/lib/python3/dist-packages/deluge/ui/client.py", line 551, in __call__
    return self.daemon.call(self.base, *args, **kwargs)
AttributeError: 'NoneType' object has no attribute 'call'

Note: See TracTickets for help on using tickets.