diff --git a/src/backend/InvenTree/users/api.py b/src/backend/InvenTree/users/api.py index b3a3b19015..49fed42d40 100644 --- a/src/backend/InvenTree/users/api.py +++ b/src/backend/InvenTree/users/api.py @@ -248,11 +248,11 @@ class Login(LoginView): if user is None: return HttpResponse(status=401) - # Check if user has mfa set up + # Check if user has mfa set up if not user_has_valid_totp_device(user): return super().post(request, *args, **kwargs) - # Stage login and redirect to 2fa + # Stage login and redirect to 2fa request.session['allauth_2fa_user_id'] = str(user.id) request.session['allauth_2fa_login'] = { 'email_verification': app_settings.EMAIL_VERIFICATION, diff --git a/tasks.py b/tasks.py index b41e2ddc03..954900a9a2 100644 --- a/tasks.py +++ b/tasks.py @@ -1369,7 +1369,7 @@ def frontend_download( if not current.exists(): warning( - f'Current frontend information for {ref} is not available - this is expected in some cases' + f'Current frontend information for {ref} is not available in {current!s} - this is expected in some cases' ) return False @@ -1451,7 +1451,7 @@ Then try continuing by running: invoke frontend-download --file