Merge pull request #6245 from svlandeg/bugfix/else

bugfix in _pipe
This commit is contained in:
Ines Montani 2020-10-13 09:59:06 +02:00 committed by GitHub
commit f090f39f17
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1361,6 +1361,7 @@ def check_bool_env_var(env_var: str) -> bool:
def _pipe(docs, proc, kwargs):
if hasattr(proc, "pipe"):
yield from proc.pipe(docs, **kwargs)
else:
# We added some args for pipe that __call__ doesn't expect.
kwargs = dict(kwargs)
for arg in ["batch_size"]: