We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 03bac49 commit 1ce6019Copy full SHA for 1ce6019
src/uwtools/drivers/ungrib.py
@@ -133,8 +133,8 @@ def output(self) -> dict[str, list[Path]]:
133
while current <= stop:
134
fn = "%s:%s" % (self.PREFIX, current.strftime("%Y-%m-%d_%H"))
135
paths.append(self.rundir / fn)
136
- if increment == 0:
137
- break
+ if increment == 0: # the loop condition will never be false...
+ break # ...so break to avoid infinite loop.
138
current += timedelta(seconds=increment)
139
return {"paths": paths}
140
0 commit comments