From 696b3819e89d203029a96ae747c034b6d44f7c66 Mon Sep 17 00:00:00 2001 From: Andrew Murray Date: Sat, 6 Jan 2018 21:58:05 +1100 Subject: [PATCH] Combined two excerpt statements --- src/PIL/SpiderImagePlugin.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/PIL/SpiderImagePlugin.py b/src/PIL/SpiderImagePlugin.py index 013560fe9..b65f181d8 100644 --- a/src/PIL/SpiderImagePlugin.py +++ b/src/PIL/SpiderImagePlugin.py @@ -48,9 +48,7 @@ def isInt(f): return 1 else: return 0 - except ValueError: - return 0 - except OverflowError: + except (ValueError, OverflowError): return 0 iforms = [1, 3, -11, -12, -21, -22]