Skip to content

Commit 16c0e6c

Browse files
Merge pull request #6646 from ColemanTom/6645-typo-in-variable-name-in-stop-py
fix typo in stop.py - options.max_poll -> options.max_polls
2 parents 0451051 + 6f8dc74 commit 16c0e6c

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

changes.d/6645.fix.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Fixed a typo in stop.py which caused a different exception to be raised than was desired

cylc/flow/scripts/stop.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,7 @@ async def _run(
268268
if int(options.max_polls) > 0 and not await spoller.poll():
269269
# (test to avoid the "nothing to do" warning for # --max-polls=0)
270270
raise CylcError(
271-
f'Workflow did not shut down after {options.max_poll} polls'
271+
f'Workflow did not shut down after {options.max_polls} polls'
272272
)
273273
return ret
274274

0 commit comments

Comments
 (0)