splunk_start = datetime.datetime.strptime(splunk_start, '%Y-%m-%d') if isinstance(splunk_start, datetime) else None

remove except