fix: [worker 2] fix JSONDecodeError

pull/23/head
Terrtia 2019-04-23 10:10:45 +02:00
parent 87a68494c1
commit 7d96e76690
No known key found for this signature in database
GPG Key ID: 1E1B1F50D84613D0
1 changed files with 2 additions and 1 deletions

View File

@ -156,7 +156,8 @@ class MetaTypesDefault:
self.reset_buffer()
all_line = data.split(self.get_file_separator())
for reconstructed_data in all_line[:-1]:
self.handle_reconstructed_data(reconstructed_data)
if reconstructed_data != b'':
self.handle_reconstructed_data(reconstructed_data)
# save incomplete element in buffer
if all_line[-1] != b'':