#1938 closed bug (Fixed)
AttributeError: 'NoneType' object has no attribute 'send_request'
| Reported by: | Calum | Owned by: | |
|---|---|---|---|
| Priority: | minor | Milestone: | 1.3.4 |
| Component: | GTK UI | Version: | 1.3.1 |
| Keywords: | Cc: |
Description (last modified by )
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 by , 15 years ago
| Description: | modified (diff) |
|---|---|
| Milestone: | 1.3.4 → 1.3.x |
| Priority: | major → minor |
comment:2 by , 14 years ago
| Resolution: | → fixed |
|---|---|
| Status: | new → closed |
comment:3 by , 14 years ago
| Milestone: | 1.3.x → 1.3.4 |
|---|
comment:4 by , 5 years ago
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.



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