Skip to content

Commit 2aab8c8

Browse files
committed
style: format code
1 parent d3adc7c commit 2aab8c8

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

openedx_authz/rest_api/v1/views.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -121,10 +121,7 @@ def post(self, request: HttpRequest) -> Response:
121121
response_data.append({"action": action, "scope": scope, "allowed": allowed})
122122
except ValueError as e:
123123
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-
)
124+
return Response(data={"message": "Invalid scope format"}, status=status.HTTP_400_BAD_REQUEST)
128125
except Exception as e: # pylint: disable=broad-exception-caught
129126
logger.error(f"Error validating permission for user {username}: {e}")
130127
return Response(

0 commit comments

Comments
 (0)