Skip to content

Commit

Permalink
fix python_date_time maybe none
Browse files Browse the repository at this point in the history
  • Loading branch information
mapledan committed Jan 22, 2024
1 parent 0f320a8 commit 6f697c5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion superset/connectors/sqla/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -833,7 +833,7 @@ def __repr__(self) -> str:

@validates("python_date_format")
def validate_pdf_is_iso8601(self, _: str, dt_format: str) -> str:
if dt_format in ("epoch_s", "epoch_ms"):
if dt_format in ("epoch_s", "epoch_ms", None):
return dt_format
try:
dt_str = datetime.now().strftime(dt_format)
Expand Down

0 comments on commit 6f697c5

Please sign in to comment.