Skip to content

Commit

Permalink
use tuple of exception classes instead of or (#8267)
Browse files Browse the repository at this point in the history
Co-authored-by: Tyler Pauly <tapastro@gmail.com>
Co-authored-by: Howard Bushouse <bushouse@stsci.edu>
  • Loading branch information
3 people authored Feb 16, 2024
1 parent 29b3e9d commit 731ac25
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion jwst/photom/photom.py
Original file line number Diff line number Diff line change
Expand Up @@ -1235,7 +1235,7 @@ def save_area_info(self, ftab, area_fname):
log.info('Values for PIXAR_SR and PIXAR_A2 obtained from AREA reference file.')

# The area reference file might be older, try the photom reference file
except AttributeError or KeyError:
except (AttributeError, KeyError):
area_ster, area_a2 = self.pixarea_from_ftab(ftab)

pix_area.close()
Expand Down

0 comments on commit 731ac25

Please sign in to comment.