mirror of
https://github.com/moparisthebest/SickRage
synced 2025-01-06 03:18:01 -05:00
Fix for BTN provider
This commit is contained in:
parent
826a9aab6a
commit
1d56ce7182
@ -137,7 +137,7 @@ class BTNProvider(generic.TorrentProvider):
|
||||
try:
|
||||
parsedJSON = server.getTorrents(apikey, params, int(results_per_page), int(offset))
|
||||
|
||||
except jsonrpclib.ProtocolError, error:
|
||||
except jsonrpclib.jsonrpc.ProtocolError, error:
|
||||
logger.log(u"JSON-RPC protocol error while accessing " + self.name + ": " + ex(error), logger.ERROR)
|
||||
parsedJSON = {'api-error': ex(error)}
|
||||
return parsedJSON
|
||||
|
Loading…
Reference in New Issue
Block a user