From 894f64276c7f5e72143e554666945a39f7b4ea0d Mon Sep 17 00:00:00 2001 From: Shubham Tiwari Date: Thu, 22 Feb 2024 18:58:12 +0530 Subject: [PATCH] chore: added check for unset values --- twilio/base/serialize.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/twilio/base/serialize.py b/twilio/base/serialize.py index eac2e12c2e..cea91b04c7 100644 --- a/twilio/base/serialize.py +++ b/twilio/base/serialize.py @@ -62,6 +62,9 @@ def flatten_dict(d, result=None, prv_keys=None): def boolean_to_string(bool_or_str): + if bool_or_str == values.unset: + return bool_or_str + if bool_or_str is None: return bool_or_str