Skip to content

Commit 2c76628

Browse files
authored
Update error_2fa_verify_readable.patch (#33)
Use rb instead of b string for regex bytes
1 parent 8fc04bc commit 2c76628

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

patches/error_2fa_verify_readable.patch

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@ index 3702266e..c19c578c 100644
66

77
raise ApiException(http_resp=r)
88

9-
+ if re.match(b'{"\w{21}":\["totp","otp"]}', r.data) is not None:
9+
+ if re.match(rb'{"\w{21}":\["totp","otp"]}', r.data) is not None:
1010
+ r.reason = "2 Factor Authentication verification is required"
1111
+ raise UnauthorizedException(http_resp=r)
12-
+ elif re.match(b'{"\w{21}":\["emailOtp"]}', r.data) is not None:
12+
+ elif re.match(rb'{"\w{21}":\["emailOtp"]}', r.data) is not None:
1313
+ r.reason = "Email 2 Factor Authentication verification is required"
1414
+ raise UnauthorizedException(http_resp=r)
1515
+

0 commit comments

Comments
 (0)