Skip to content

Commit

Permalink
Cover the case when the block id is null in the header.
Browse files Browse the repository at this point in the history
  • Loading branch information
cmccully committed Jan 13, 2025
1 parent e585964 commit 8fe8f7e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion banzai/lco.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,10 @@ def proposal(self):

@property
def blockid(self):
return self.primary_hdu.meta.get('BLKUID')
id = self.primary_hdu.meta.get('BLKUID')
if str(id).lower() in ['n/a', 'unknown', 'none', '']:
id = None
return id

@property
def public_date(self):
Expand Down

0 comments on commit 8fe8f7e

Please sign in to comment.