diff --git a/clients/deluge.py b/clients/deluge.py index acf9982771a1d096e6add860ca28a4dfff4b5ed1..a6afdb5a706009f4cd63f745d254204506684122 100644 --- a/clients/deluge.py +++ b/clients/deluge.py @@ -115,7 +115,7 @@ class DelugeClient(TorrentClient): try: res = urlopen(req) except URLError as e: - msg = 'Failed To Authenticate with torrent client. HTTP Error' + msg = 'Failed To Authenticate with torrent client. HTTP Error. Aborting' self.send_log(msg, 'critical') print(e) sys.exit(1) @@ -175,6 +175,9 @@ class DelugeClient(TorrentClient): return output = self._process_response(res) + if not output: + return + if output['error']: msg = 'Problem getting torrent list from {}. Error: {}'.format(self.torrent_client, output['error']) self.send_log(msg, 'error')