Skip to content

Commit

Permalink
Workaround metadata problem
Browse files Browse the repository at this point in the history
  • Loading branch information
jeromekelleher committed Oct 18, 2024
1 parent 7107111 commit b3fa15c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sc2ts/metadata.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ def date_sample_counts(self):
with self.conn:
for row in self.conn.execute(sql):
date = row["date"]
if len(date) == 10 and date.startswith("20"):
if date is not None and len(date) == 10 and date.startswith("20"):
counts[date] = row["COUNT(*)"]
return counts

Expand Down

0 comments on commit b3fa15c

Please sign in to comment.