Skip to content

Commit

Permalink
fix?
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions committed Dec 5, 2024
1 parent 64c6943 commit a885451
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
4 changes: 2 additions & 2 deletions bbot/core/helpers/web/envelopes.py
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ def get_subparams(self, key=None, data=None, recursive=True):
else:
yield full_key, v
else:
yield [], str(data)
yield [], data

def get_subparam(self, key=None, recursive=True):
if key is None:
Expand All @@ -160,7 +160,7 @@ def get_subparam(self, key=None, recursive=True):
else:
for segment in key:
data = data[segment]
return str(data)
return data

def set_subparam(self, key=None, value=None, recursive=True):
envelope = self
Expand Down
9 changes: 5 additions & 4 deletions bbot/modules/lightfuzz_submodules/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -228,10 +228,11 @@ def incoming_probe_value(self, populate_empty=True):
probe_value = self.lightfuzz.helpers.rand_string(10, numeric_only=True)
else:
probe_value = ""
if not isinstance(probe_value, str):
raise ValueError(
f"incoming_probe_value should always be a string (got {type(probe_value)} / {probe_value})"
)
# if not isinstance(probe_value, str):
# raise ValueError(
# f"incoming_probe_value should always be a string (got {type(probe_value)} / {probe_value})"
# )
probe_value = str(probe_value)
return probe_value

def outgoing_probe_value(self, outgoing_probe_value):
Expand Down

0 comments on commit a885451

Please sign in to comment.