Skip to content

Commit

Permalink
return None rather than raise exception if headers are missing
Browse files Browse the repository at this point in the history
  • Loading branch information
phirstgemini committed Jul 20, 2023
1 parent fd289c9 commit a21f99f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions gemini_instruments/gmos/adclass.py
Original file line number Diff line number Diff line change
Expand Up @@ -1003,6 +1003,8 @@ def read_speed_setting(self):
except KeyError:
return None
detector = self.detector_name(pretty=True)
if detector is None:
return None
if detector.startswith('Hamamatsu'):
return 'slow' if ampinteg > 8000 else 'fast'
else:
Expand Down

0 comments on commit a21f99f

Please sign in to comment.