Opened 13 years ago

Closed 13 years ago

Last modified 3 years 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.

Traceback (most recent call last):
  File "/usr/lib/pymodules/python2.7/deluge/ui/gtkui/", line 256, in on_menuitem_quitdaemon_activate
  File "/usr/lib/pymodules/python2.7/deluge/ui/gtkui/", line 163, in quit
  File "/usr/lib/pymodules/python2.7/deluge/ui/", line 504, in __call__
    return, *args, **kwargs)
  File "/usr/lib/pymodules/python2.7/deluge/ui/", line 310, in call
AttributeError: 'NoneType' object has no attribute 'send_request'

Change History (4)

comment:1 Changed 13 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 13 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.


comment:3 Changed 13 years ago by Cas

  • Milestone changed from 1.3.x to 1.3.4

comment:4 Changed 3 years 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


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/", line 160, in _handle_request
    result = self._exec_local(method, params, request)
  File "/usr/lib/python3/dist-packages/deluge/ui/web/", line 122, in _exec_local
    return meth(*params)
  File "/usr/lib/python3/dist-packages/deluge/ui/web/", line 640, in get_torrent_status
    d = component.get('SessionProxy').get_torrent_status(torrent_id, keys)
  File "/usr/lib/python3/dist-packages/deluge/ui/", line 159, in get_torrent_status
    d = client.core.get_torrent_status(torrent_id, keys, True)
  File "/usr/lib/python3/dist-packages/deluge/ui/", line 551, in __call__
    return, *args, **kwargs)
AttributeError: 'NoneType' object has no attribute 'call'

Note: See TracTickets for help on using tickets.