We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fa65ff9 commit c87bb0cCopy full SHA for c87bb0c
policyengine_api/compute_api/compute_api.py
@@ -124,9 +124,10 @@ def score_policy_reform_against_baseline(
124
)
125
if reform_impact is not None:
126
start_time_str = reform_impact.get("start_time")
127
- start_time = datetime.datetime.strptime(
128
- start_time_str, "%Y-%m-%d %H:%M:%S.%f"
129
- )
+ if isinstance(start_time_str, str):
+ start_time = datetime.datetime.strptime(
+ start_time_str, "%Y-%m-%d %H:%M:%S.%f"
130
+ )
131
# If the computation has been running for more than 5 minutes, restart it
132
outdated = (
133
reform_impact.get("status") == "computing"
0 commit comments