Skip to content

Commit e9eeb9f

Browse files
WIP: Implement google authentication. (Sourcery refactored) (#114)
* 'Refactored by Sourcery' * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci Co-authored-by: Sourcery AI <> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
1 parent 58923f7 commit e9eeb9f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drf_user/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ def send_otp(value, otpobj, recip):
172172
try:
173173
rdata = send_message(message, otp_settings["SUBJECT"], [value], [recip])
174174
except ValueError as err:
175-
raise APIException(_(f"Server configuration error occurred: {str(err)}"))
175+
raise APIException(_(f"Server configuration error occurred: {err}"))
176176

177177
otpobj.reactive_at = timezone.now() + datetime.timedelta(
178178
minutes=otp_settings["COOLING_PERIOD"]

0 commit comments

Comments
 (0)