Skip to content

Commit b08ccc1

Browse files
aaronsteersCopilot
andauthored
Apply suggestion from @Copilot
Co-authored-by: Copilot <[email protected]>
1 parent e0aac18 commit b08ccc1

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

airbyte_cdk/sources/declarative/incremental/datetime_based_cursor.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -315,8 +315,7 @@ def parse_date(self, date: str) -> datetime.datetime:
315315
except ValueError:
316316
pass
317317

318-
parsed_dt = ab_datetime_try_parse(date)
319-
if parsed_dt:
318+
if parsed_dt is not None:
320319
return parsed_dt
321320

322321
raise ValueError(f"No format in {self.cursor_datetime_formats} matching {date}")

0 commit comments

Comments
 (0)