mirror of
https://github.com/SickGear/SickGear.git
synced 2025-01-21 17:13:42 +00:00
Merge pull request #549 from sammy2142/patch-1
Fixes Invalid ratio error when ratio is not set for transmission
This commit is contained in:
commit
0257c70990
1 changed files with 6 additions and 6 deletions
|
@ -85,12 +85,12 @@ class TransmissionAPI(GenericClient):
|
||||||
ratio = result.ratio
|
ratio = result.ratio
|
||||||
elif sickbeard.TORRENT_RATIO:
|
elif sickbeard.TORRENT_RATIO:
|
||||||
ratio = sickbeard.TORRENT_RATIO
|
ratio = sickbeard.TORRENT_RATIO
|
||||||
|
if ratio:
|
||||||
try:
|
try:
|
||||||
float(ratio)
|
float(ratio)
|
||||||
except ValueError:
|
except ValueError:
|
||||||
logger.log(self.name + u': Invalid Ratio. "' + ratio + u'" is not a number', logger.ERROR)
|
logger.log(self.name + u': Invalid Ratio. "' + ratio + u'" is not a number', logger.ERROR)
|
||||||
return False
|
return False
|
||||||
|
|
||||||
torrent_id = self._get_torrent_hash(result)
|
torrent_id = self._get_torrent_hash(result)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue