Skip to content

Commit

Permalink
Update main.py
Browse files Browse the repository at this point in the history
  • Loading branch information
santoshlite authored Aug 7, 2023
1 parent de760a8 commit 0dda73b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/empyrial/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -764,7 +764,10 @@ def valid_range(start_date, end_date, rebalance) -> tuple:
return start_date, rebalance[-1]

# make the end date to a datetime
end_date = dt.datetime.strptime(end_date, "%Y-%m-%d")
try:
end_date = dt.datetime.strptime(end_date, "%Y-%m-%d")
except TypeError:
pass


# gets the number of days
Expand Down

0 comments on commit 0dda73b

Please # to comment.