Browse Source
Merge pull request #136 from sudodoki/master
Fix issue with text import yielding internal server error
pull/143/head
Hiroki Nakayama
6 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
1 deletions
-
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] |
|
|
|
|
|
|
|
|
|
|
|