Skip to content

Commit

Permalink
ensure than changing fail try 1 only doesn't cause failure
Browse files Browse the repository at this point in the history
  • Loading branch information
wxtim committed Mar 6, 2024
1 parent cd2fe55 commit 6773246
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions cylc/flow/simulation.py
Original file line number Diff line number Diff line change
Expand Up @@ -244,11 +244,13 @@ def parse_fail_cycle_points(
True
>>> this([])
[]
>>> this(None)
[]
"""
f_pts: 'Optional[List[PointBase]]'
if 'all' in f_pts_orig:
f_pts: 'Optional[List[PointBase]]' = []
if f_pts_orig and 'all' in f_pts_orig:
f_pts = None
else:
elif f_pts_orig:
f_pts = []
for point_str in f_pts_orig:
f_pts.append(get_point(point_str).standardise())
Expand Down

0 comments on commit 6773246

Please sign in to comment.