Skip to content

Commit

Permalink
Merge pull request #2992 from fdmalone/catch_non_date_in_bq_load_dev
Browse files Browse the repository at this point in the history
Catch "None" fields in slurm job datetime data for BigQuery
  • Loading branch information
mr0re1 authored Sep 4, 2024
2 parents 3ba0833 + 2b25abc commit 4fac295
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,8 @@


def make_datetime(time_string):
if time_string == "None":
return None
return datetime.strptime(time_string, SLURM_TIME_FORMAT).replace(
tzinfo=timezone.utc
)
Expand Down

0 comments on commit 4fac295

Please sign in to comment.