Do not use Ellipsis.
This commit is contained in:
parent
bd7bbc4e33
commit
c6ee8cf39d
|
@ -344,11 +344,10 @@ class TorrentManager(component.Component):
|
||||||
log.warning("Unable to delete the fastresume file: %s", e)
|
log.warning("Unable to delete the fastresume file: %s", e)
|
||||||
|
|
||||||
def add(self, torrent_info=None, state=None, options=None, save_state=True,
|
def add(self, torrent_info=None, state=None, options=None, save_state=True,
|
||||||
filedump=None, filename=None, magnet=None, resume_data=None,
|
filedump=None, filename=None, magnet=None, resume_data=None, owner=None):
|
||||||
owner=Ellipsis):
|
|
||||||
"""Add a torrent to the manager and returns it's torrent_id"""
|
"""Add a torrent to the manager and returns it's torrent_id"""
|
||||||
|
|
||||||
if owner is Ellipsis:
|
if owner is None:
|
||||||
owner = component.get("RPCServer").get_session_user()
|
owner = component.get("RPCServer").get_session_user()
|
||||||
if not owner:
|
if not owner:
|
||||||
owner = "localclient"
|
owner = "localclient"
|
||||||
|
|
Loading…
Reference in New Issue