diff --git a/src/PIL/TiffImagePlugin.py b/src/PIL/TiffImagePlugin.py index 7f596b9ed..ab53483c5 100644 --- a/src/PIL/TiffImagePlugin.py +++ b/src/PIL/TiffImagePlugin.py @@ -327,8 +327,6 @@ class IFDRational(Rational): if denominator == 0: self._val = float("nan") - return - elif denominator == 1: self._val = Fraction(value) else: