Skip to content

Commit

Permalink
fixes(small): small pr changes
Browse files Browse the repository at this point in the history
  • Loading branch information
alexandrusoare committed Jan 20, 2025
1 parent fb59397 commit dc27c0f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions superset/utils/date_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -166,8 +166,7 @@ def get_relative_base(unit: str, relative_start: str | None = None) -> str:
return "now"
elif unit.lower() in broad_units:
return "today"
else:
raise ValueError(f"Unknown unit: {unit}")
raise ValueError(f"Unknown unit: {unit}")


def handle_start_of(base_expression: str, unit: str) -> str:
Expand Down

0 comments on commit dc27c0f

Please sign in to comment.