Fix for BTN provider

This commit is contained in:
echel0n 2014-04-27 19:51:15 -07:00
parent 826a9aab6a
commit 1d56ce7182

View file

@ -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