Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
FS-SC
AsapoWorker
Commits
23914af1
Commit
23914af1
authored
Apr 03, 2022
by
Tim Schoof
Browse files
Fix StopIteration error on Python >= 3.7
parent
593fc3e0
Pipeline
#24554
passed with stage
in 44 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/AsapoWorker/utils.py
View file @
23914af1
...
...
@@ -3,7 +3,7 @@ def not_last_n(n, iterator):
if
len
(
iterator
)
-
i
>
n
:
yield
element
else
:
r
aise
StopIteration
()
r
eturn
def
format_error
(
err
):
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment