Skip to content

Commit

Permalink
Merge pull request #189 from stsci-hack/avoid_headerlet_error
Browse files Browse the repository at this point in the history
Avoid Exception for some new data
  • Loading branch information
nden committed Nov 29, 2021
2 parents 8517ca6 + 7e67f12 commit d060ba3
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion stwcs/updatewcs/astrometry_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -470,7 +470,6 @@ def apply_new_apriori(self, obsname):
hlet_extns = headerlet.get_headerlet_kw_names(obsname, kw='EXTVER')
# newly processed data will not have any hlet_extns, so we need to account for that
newhlt = max(hlet_extns) + 1 if len(hlet_extns) > 0 else 1
newext = max(headerlet.find_headerlet_HDUs(obsname, strict=False))
hlet_names = [obsname[('hdrlet', e)].header['wcsname'] for e in hlet_extns]

if wname not in hlet_names:
Expand Down

0 comments on commit d060ba3

Please sign in to comment.