mirror of
https://github.com/moparisthebest/SickRage
synced 2025-03-04 10:29:52 -05:00
Fixes Invalid ratio error when ratio is not set
I would recommend undoing 7673cd5cc9d8e797a5b83cf956ede4eaae3deb7e for the time being as some of the client scripts have code dependent on the input being a string.
This commit is contained in:
parent
1d01d2bc52
commit
e42cdb5b4a
@ -85,7 +85,7 @@ 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:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user