Browse Source

Merge 5737885dfd into 0176b0de36

pull/4740/merge
Rémi Alvergnat 8 years ago
committed by GitHub
parent
commit
1cf390f827
  1. 4
      couchpotato/core/downloaders/deluge.py

4
couchpotato/core/downloaders/deluge.py

@ -239,7 +239,7 @@ class DelugeRPC(object):
if not torrent_id:
torrent_id = self._check_torrent(True, torrent)
if torrent_id and options['label']:
if torrent_id and options['label'] and hasattr(self.client, 'label'):
self.client.label.set_torrent(torrent_id, options['label']).get()
except Exception as err:
log.error('Failed to add torrent magnet %s: %s %s', (torrent, err, traceback.format_exc()))
@ -257,7 +257,7 @@ class DelugeRPC(object):
if not torrent_id:
torrent_id = self._check_torrent(False, torrent)
if torrent_id and options['label']:
if torrent_id and options['label'] and hasattr(self.client, 'label'):
self.client.label.set_torrent(torrent_id, options['label']).get()
except Exception as err:
log.error('Failed to add torrent file %s: %s %s', (filename, err, traceback.format_exc()))

Loading…
Cancel
Save