Skip to content

Commit

Permalink
[gaarf-py] Improve handling of date conversion
Browse files Browse the repository at this point in the history
Change-Id: I7b18f0353db210fc569cb2d0e96362dc03ca06da
  • Loading branch information
AVMarkin committed Jun 7, 2023
1 parent 7da86bf commit d7e48e8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion py/gaarf/cli/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ class GaarfParamsException(Exception):
def convert_date(date_string: str) -> str:
"""Converts specific dates parameters to actual dates."""

if date_string.find(":YYYY") == -1:
if isinstance(date_string, list) or date_string.find(":YYYY") == -1:
return date_string
current_date = datetime.date.today()
date_object = date_string.split("-")
Expand Down

0 comments on commit d7e48e8

Please sign in to comment.