mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-12-26 09:56:17 +03:00
Specified exception type
This commit is contained in:
parent
384d32969d
commit
9176633d60
|
@ -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)
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user