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) +