From 64c6943da31ed880012d1b777713c57ef5414163 Mon Sep 17 00:00:00 2001 From: liquidsec Date: Tue, 3 Dec 2024 10:05:50 -0500 Subject: [PATCH] ensuring original_value is str --- bbot/core/helpers/web/envelopes.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bbot/core/helpers/web/envelopes.py b/bbot/core/helpers/web/envelopes.py index c000c5d1c0..093c036a6b 100644 --- a/bbot/core/helpers/web/envelopes.py +++ b/bbot/core/helpers/web/envelopes.py @@ -143,7 +143,7 @@ def get_subparams(self, key=None, data=None, recursive=True): else: yield full_key, v else: - yield [], data + yield [], str(data) def get_subparam(self, key=None, recursive=True): if key is None: @@ -160,7 +160,7 @@ def get_subparam(self, key=None, recursive=True): else: for segment in key: data = data[segment] - return data + return str(data) def set_subparam(self, key=None, value=None, recursive=True): envelope = self