diff --git a/sickbeard/clients/transmission.py b/sickbeard/clients/transmission.py index 82a87cd2..6f3e0e22 100644 --- a/sickbeard/clients/transmission.py +++ b/sickbeard/clients/transmission.py @@ -85,12 +85,12 @@ class TransmissionAPI(GenericClient): ratio = result.ratio elif sickbeard.TORRENT_RATIO: ratio = sickbeard.TORRENT_RATIO - - try: - float(ratio) - except ValueError: - logger.log(self.name + u': Invalid Ratio. "' + ratio + u'" is not a number', logger.ERROR) - return False + if ratio: + try: + float(ratio) + except ValueError: + logger.log(self.name + u': Invalid Ratio. "' + ratio + u'" is not a number', logger.ERROR) + return False torrent_id = self._get_torrent_hash(result)