From 40aeeffdf475cb7d557be003e2992b11d1f722fb Mon Sep 17 00:00:00 2001 From: Seth Michael Larson Date: Mon, 14 Sep 2020 17:19:56 -0500 Subject: [PATCH] [7.x] Fix typo in ScanError Co-authored-by: Nathan Meisels --- elasticsearch/_async/helpers.py | 2 +- elasticsearch/helpers/actions.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/elasticsearch/_async/helpers.py b/elasticsearch/_async/helpers.py index 34b927a0..3b39ecc3 100644 --- a/elasticsearch/_async/helpers.py +++ b/elasticsearch/_async/helpers.py @@ -349,7 +349,7 @@ async def async_scan( if raise_on_error: raise ScanError( scroll_id, - "Scroll request has only succeeded on %d (+%d skiped) shards out of %d." + "Scroll request has only succeeded on %d (+%d skipped) shards out of %d." % ( resp["_shards"]["successful"], resp["_shards"]["skipped"], diff --git a/elasticsearch/helpers/actions.py b/elasticsearch/helpers/actions.py index 87fcc305..fa41c2df 100644 --- a/elasticsearch/helpers/actions.py +++ b/elasticsearch/helpers/actions.py @@ -527,7 +527,7 @@ def scan( if raise_on_error: raise ScanError( scroll_id, - "Scroll request has only succeeded on %d (+%d skiped) shards out of %d." + "Scroll request has only succeeded on %d (+%d skipped) shards out of %d." % ( resp["_shards"]["successful"], resp["_shards"]["skipped"],