diff --git a/mvt/common/utils.py b/mvt/common/utils.py index 12f42b1..2ec6bbd 100644 --- a/mvt/common/utils.py +++ b/mvt/common/utils.py @@ -59,6 +59,9 @@ def convert_datetime_to_iso(date_time: datetime.datetime) -> str: :rtype: str """ + if not date_time: + return "" + if date_time.tzinfo: # Timezone aware object - convert to UTC date_time = date_time.astimezone(tz=datetime.timezone.utc)