mirror of
https://github.com/SickGear/SickGear.git
synced 2024-12-01 08:53:37 +00:00
Fixes Invalid ratio error when ratio is not set
I would recommend undoing 7673cd5cc9
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
1 changed files with 6 additions and 6 deletions
|
@ -85,7 +85,7 @@ class TransmissionAPI(GenericClient):
|
|||
ratio = result.ratio
|
||||
elif sickbeard.TORRENT_RATIO:
|
||||
ratio = sickbeard.TORRENT_RATIO
|
||||
|
||||
if ratio:
|
||||
try:
|
||||
float(ratio)
|
||||
except ValueError:
|
||||
|
|
Loading…
Reference in a new issue