Browse Source

removed ".get()"

(cherry picked from commit 4b186ddfc541f178b552f60c0e965a00229ff566)
pull/7311/head
Marijn 5 years ago
committed by MrAlfabet
parent
commit
3bddc88e5f
  1. 4
      couchpotato/core/downloaders/deluge.py

4
couchpotato/core/downloaders/deluge.py

@ -254,12 +254,12 @@ class DelugeRPC(object):
torrent_id = False torrent_id = False
try: try:
self.connect() self.connect()
torrent_id = self.client.core.add_torrent_file(filename, b64encode(torrent), options).get() torrent_id = self.client.core.add_torrent_file(filename, b64encode(torrent), options)
if not torrent_id: if not torrent_id:
torrent_id = self._check_torrent(False, torrent) torrent_id = self._check_torrent(False, torrent)
if torrent_id and options['label']: if torrent_id and options['label']:
self.client.label.set_torrent(torrent_id, options['label']).get() self.client.label.set_torrent(torrent_id, options['label'])
except Exception as err: except Exception as err:
log.error('Failed to add torrent file %s: %s %s', (filename, err, traceback.format_exc())) log.error('Failed to add torrent file %s: %s %s', (filename, err, traceback.format_exc()))
finally: finally:

Loading…
Cancel
Save