Private GIT

Skip to content
Snippets Groups Projects
Commit 871097af authored by Matt's avatar Matt
Browse files

Fixed crash as a result of no torrents in client

parent 6bbd352e
Branches
No related tags found
No related merge requests found
......@@ -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')
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment