Skip to content

Commit b8078ec

Browse files
author
Sourcery AI
committed
'Refactored by Sourcery'
1 parent 58923f7 commit b8078ec

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)