We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d3adc7c commit 2aab8c8Copy full SHA for 2aab8c8
1 file changed
openedx_authz/rest_api/v1/views.py
@@ -121,10 +121,7 @@ def post(self, request: HttpRequest) -> Response:
121
response_data.append({"action": action, "scope": scope, "allowed": allowed})
122
except ValueError as e:
123
logger.error(f"Error validating permission for user {username}: {e}")
124
- return Response(
125
- data={"message": "Invalid scope format"},
126
- status=status.HTTP_400_BAD_REQUEST,
127
- )
+ return Response(data={"message": "Invalid scope format"}, status=status.HTTP_400_BAD_REQUEST)
128
except Exception as e: # pylint: disable=broad-exception-caught
129
130
return Response(
0 commit comments