Skip to content

Commit

Permalink
Specified exception type
Browse files Browse the repository at this point in the history
  • Loading branch information
radarhere committed Dec 9, 2015
1 parent 384d329 commit 9176633
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion PIL/EpsImagePlugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,7 @@ def _open(self):
break
try:
self.mode = self.mode_map[int(mo)]
except:
except ValueError:
break

self.size = int(x), int(y)
Expand Down
2 changes: 1 addition & 1 deletion Tests/large_memory_numpy_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
from PIL import Image
try:
import numpy as np
except:
except ImportError:
raise unittest.SkipTest("numpy not installed")

YDIM = 32769
Expand Down

0 comments on commit 9176633

Please sign in to comment.