Skip to content

Commit

Permalink
Fix bare exception in zogy.py
Browse files Browse the repository at this point in the history
  • Loading branch information
r-owen committed Jan 3, 2018
1 parent dc27189 commit e0e173d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion python/lsst/ip/diffim/zogy.py
Original file line number Diff line number Diff line change
Expand Up @@ -484,8 +484,9 @@ def _doConvolve(self, exposure, kernel, recenterKernel=False):
maxInterpolationDistance=0)
try:
afwMath.convolve(outExp.getMaskedImage(), exposure.getMaskedImage(), kern, convCntrl)
except:
except AttributeError:
# Allow exposure to actually be an image/maskedImage
# (getMaskedImage will throw AttributeError in that case)
afwMath.convolve(outExp, exposure, kern, convCntrl)

return outExp, kern
Expand Down

0 comments on commit e0e173d

Please sign in to comment.