#2170: WebUI generates AttributeError: 'NoneType' object has no attribute 'call'
when reconnected to daemon
---------------------+------------------------------------------------------
Reporter: Cas | Owner: damoxc
Type: bug | Status: new
Priority: trivial | Milestone: 1.3.6
Component: webui | Version: 1.3.5
Keywords: |
---------------------+------------------------------------------------------
To reproduce:
* Open browser with webui and select a torrent.
* Kill deluged
* Start deluged
* The webui will generate the following error in logs:
{{{
[ERROR ] 15:33:47 json_api:229 'NoneType' object has no attribute 'call'
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/deluge/ui/web/json_api.py", line
220, in _handle_request
result = self._exec_local(method, params, request)
File "/usr/lib/python2.7/dist-packages/deluge/ui/web/json_api.py", line
187, in _exec_local
return meth(*params)
File "/usr/lib/python2.7/dist-packages/deluge/ui/web/json_api.py", line
618, in get_torrent_status
return component.get("SessionProxy").get_torrent_status(torrent_id,
keys)
File "/usr/lib/python2.7/dist-packages/deluge/ui/sessionproxy.py", line
148, in get_torrent_status
d = client.core.get_torrent_status(torrent_id, keys, True)
File "/usr/lib/python2.7/dist-packages/deluge/ui/client.py", line 508,
in __call__
return self.daemon.call(self.base, *args, **kwargs)
AttributeError: 'NoneType' object has no attribute 'call'
}}}
The is due to a delayed get_torrent_status call to not yet created daemon
in client.py.
It is a trivial issue and simply generates unnecessary log messages.
--
Ticket URL: <http://dev.deluge-torrent.org/ticket/2170>
Deluge <http://deluge-torrent.org/>
Deluge project
--
You received this message because you are subscribed to the Google Groups
"Deluge Dev" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/deluge-dev?hl=en.