Skip to content

Commit

Permalink
Replace bare Exception with ValueError
Browse files Browse the repository at this point in the history
  • Loading branch information
taranu committed Jul 8, 2020
1 parent de602ef commit e208008
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test_maskedImageIO.py
Original file line number Diff line number Diff line change
Expand Up @@ -405,7 +405,7 @@ def _constructImage(self, filename, hdu=None, needAllHdus=False):
if hdu:
filename = f"{filename}[{hdu}]"
if needAllHdus:
raise Exception("Cannot needAllHdus with Exposure")
raise ValueError("Cannot needAllHdus with Exposure")
return afwImage.ExposureF(filename)

def _checkImage(self, im, width, height, val1, val2, val3):
Expand Down

0 comments on commit e208008

Please sign in to comment.