Specified exception type

This commit is contained in:
Andrew Murray 2015-12-09 16:24:32 +11:00
parent 384d32969d
commit 9176633d60
2 changed files with 2 additions and 2 deletions

View File

@ -295,7 +295,7 @@ class EpsImageFile(ImageFile.ImageFile):
break
try:
self.mode = self.mode_map[int(mo)]
except:
except ValueError:
break
self.size = int(x), int(y)

View File

@ -13,7 +13,7 @@ from helper import unittest, PillowTestCase
from PIL import Image
try:
import numpy as np
except:
except ImportError:
raise unittest.SkipTest("numpy not installed")
YDIM = 32769