Skip to content

Commit f7f65ea

Browse files
committed
fix make pr
1 parent 8302fd0 commit f7f65ea

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

samcli/commands/sync/sync_context.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -95,15 +95,13 @@ def _parse_time_from_toml(time_value: Union[str, int, float, datetime]) -> Optio
9595
parsed = datetime.fromisoformat(time_value)
9696
return parsed if parsed.tzinfo else parsed.replace(tzinfo=timezone.utc)
9797

98-
LOG.warning("Invalid time format in sync.toml: %s. Triggering full CloudFormation deployment.", time_value)
99-
return None
10098
except (ValueError, OSError) as e:
10199
LOG.warning(
102100
"Failed to parse timestamp from sync.toml: %s. Triggering full CloudFormation deployment. Error: %s",
103101
time_value,
104102
e,
105103
)
106-
return None
104+
return None
107105

108106

109107
def _sync_state_to_toml_document(sync_state: SyncState) -> TOMLDocument:

0 commit comments

Comments
 (0)