Browse Source

Fix issue with text import yielding internal server error on StopIteration

pull/136/head
sudodoki 5 years ago
parent
commit
4bfa60185d
1 changed files with 1 additions and 1 deletions
  1. 2
      app/server/utils.py

2
app/server/utils.py

@ -344,7 +344,7 @@ class PlainTextParser(FileParser):
while True:
batch = list(itertools.islice(file, IMPORT_BATCH_SIZE))
if not batch:
raise StopIteration
break
yield [{'text': line.strip()} for line in batch]

Loading…
Cancel
Save