1
0
mirror of https://github.com/kellyjonbrazil/jc.git synced 2025-06-19 00:17:51 +02:00

simplify None data scenario

This commit is contained in:
Kelly Brazil
2021-03-29 15:32:04 -07:00
parent d8d600cc36
commit 65c3a12e54
2 changed files with 35 additions and 24 deletions

View File

@ -109,6 +109,7 @@ def parse_datetime_to_timestamp(data):
If the conversion completely fails, all fields will be None.
"""
data = data or ''
normalized_datetime = ''
utc_tz = False
dt = None