From 162d0c63c0883e37bc3bda2e9faf07a5eb4e1490 Mon Sep 17 00:00:00 2001 From: Your Name Date: Wed, 6 May 2020 13:25:27 +0500 Subject: [PATCH] Fix on_error_sequence type check. --- core/script/cli/base.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/script/cli/base.py b/core/script/cli/base.py index 6f1eb7d372..1b1a9f1c7c 100644 --- a/core/script/cli/base.py +++ b/core/script/cli/base.py @@ -779,7 +779,7 @@ class CLI(object): :param error_text: :return: """ - if isinstance(seq, six.string_types): + if isinstance(seq, six.binary_type) or isinstance(seq, six.string_types): self.logger.debug("Recovering from error. Sending %r", seq) yield self.iostream.write(seq) elif callable(seq): -- GitLab