Skip to content

Commit

Permalink
Add TypeError to exception when parsing last-update-time in bsqls ope…
Browse files Browse the repository at this point in the history
…rator.
  • Loading branch information
wagmarcel committed Aug 6, 2023
1 parent 697fb59 commit 559ce8a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion FlinkSqlServicesOperator/beamsqlstatementsetoperator.py
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,7 @@ def monitor(beamsqltables: kopf.Index, beamsqlviews: kopf.Index,
# if last_timestamp not defined, lookup the createdOn timestamp
try:
last_timestamp = float(last_timestamp)
except ValueError:
except (ValueError, TypeError):
last_timestamp = None
if last_timestamp is None:
create_obj = status_obj.get('create')
Expand Down

0 comments on commit 559ce8a

Please sign in to comment.