From 9369bc8d76fd62d893c83b61a02b28bffb4b2d2c Mon Sep 17 00:00:00 2001 From: Gaurav Jain <64748057+errorxyz@users.noreply.github.com> Date: Mon, 16 Sep 2024 16:42:07 +0530 Subject: [PATCH] Fix error while changing string-based options (#7183) Fix widget text access --- mitmproxy/tools/console/grideditor/col_bytes.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mitmproxy/tools/console/grideditor/col_bytes.py b/mitmproxy/tools/console/grideditor/col_bytes.py index 7ab97ea68..0ac4a7ed1 100644 --- a/mitmproxy/tools/console/grideditor/col_bytes.py +++ b/mitmproxy/tools/console/grideditor/col_bytes.py @@ -41,7 +41,7 @@ class Edit(base.Cell): super().__init__(w) def get_data(self) -> bytes: - txt = self._w.get_text()[0].strip() + txt = self._w.base_widget.get_text()[0].strip() try: return strutils.escaped_str_to_bytes(txt) except ValueError: