From 7835aa072aeb3fc02d7d55498bcdb7a6dc5f94b0 Mon Sep 17 00:00:00 2001 From: Katistix <33645731+Katistic@users.noreply.github.com> Date: Tue, 17 Mar 2026 19:29:32 +1100 Subject: [PATCH] Update error_2fa_verify_readable.patch Use rb instead of b string for regex bytes --- patches/error_2fa_verify_readable.patch | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/patches/error_2fa_verify_readable.patch b/patches/error_2fa_verify_readable.patch index 94c1e6de..1071a4a9 100644 --- a/patches/error_2fa_verify_readable.patch +++ b/patches/error_2fa_verify_readable.patch @@ -6,10 +6,10 @@ index 3702266e..c19c578c 100644 raise ApiException(http_resp=r) -+ if re.match(b'{"\w{21}":\["totp","otp"]}', r.data) is not None: ++ if re.match(rb'{"\w{21}":\["totp","otp"]}', r.data) is not None: + r.reason = "2 Factor Authentication verification is required" + raise UnauthorizedException(http_resp=r) -+ elif re.match(b'{"\w{21}":\["emailOtp"]}', r.data) is not None: ++ elif re.match(rb'{"\w{21}":\["emailOtp"]}', r.data) is not None: + r.reason = "Email 2 Factor Authentication verification is required" + raise UnauthorizedException(http_resp=r) +