Skip to content

Commit 17f2e61

Browse files
liallnwong-a
andauthored
Apply suggestions from code review
Co-authored-by: Adam Wong <55506708+wong-a@users.noreply.github.com>
1 parent 7c397ca commit 17f2e61

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/stepfunctions/steps/states.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -594,7 +594,7 @@ def __init__(self, state_id, **kwargs):
594594
"""
595595
super(Task, self).__init__(state_id, 'Task', **kwargs)
596596
if self.timeout_seconds is not None and self.timeout_seconds_path is not None:
597-
raise ValueError("The Task state can contain at most one of 'timeout_seconds' or 'timeout_seconds_path'.")
597+
raise ValueError("Only one of 'timeout_seconds' or 'timeout_seconds_path' can be provided.")
598598

599599
if self.heartbeat_seconds is not None and self.heartbeat_seconds_path is not None:
600600
raise ValueError("The Task state can contain at most one of 'heartbeat_seconds' or 'heartbeat_seconds_path'.")

0 commit comments

Comments
 (0)