Skip to content

Commit

Permalink
fix gov_nih transformer date fail
Browse files Browse the repository at this point in the history
  • Loading branch information
aaxelb committed Jan 13, 2021
1 parent dea49d7 commit f99039d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion share/transformers/gov_nih.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,10 @@ class Award(Parser):
# The amount of the award provided by the funding NIH Institute(s) or Center(s)
description = RunPython(filter_nil, ctx.FUNDING_ICs)
award_amount = Int(RunPython(filter_nil, ctx.TOTAL_COST))
date = ParseDate(RunPython(filter_nil, ctx.BUDGET_START))
date = Try(
ParseDate(RunPython(filter_nil, ctx.BUDGET_START)),
exceptions=(InvalidDate,),
)
uri = RunPython('format_nih_url', RunPython(filter_nil, ctx.APPLICATION_ID))

class Extra:
Expand Down

0 comments on commit f99039d

Please sign in to comment.