Skip to content

Commit fa7b421

Browse files
Merge pull request #323 from minos-framework/restyled/issue-315-graphql-plugin-documentation
Restyle #315 - GraphQL documentation correction
2 parents d3e5fc9 + c1c5442 commit fa7b421

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

packages/plugins/minos-router-graphql/minos/plugins/graphql/decorators.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,10 @@ def __init__(self, name: str, output, argument: Optional = None):
2525
self.output = output
2626

2727
def __iter__(self) -> Iterable:
28-
yield from (type(self), self.name,)
28+
yield from (
29+
type(self),
30+
self.name,
31+
)
2932

3033

3134
class GraphQlCommandEnrouteDecorator(GraphQlEnrouteDecorator):

packages/plugins/minos-router-graphql/minos/plugins/graphql/handlers.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import logging
12
import traceback
23
from typing import (
34
Any,
@@ -15,7 +16,6 @@
1516
Response,
1617
ResponseException,
1718
)
18-
import logging
1919

2020
logger = logging.getLogger(__name__)
2121

@@ -71,7 +71,7 @@ def _build_response_from_graphql(result: ExecutionResult) -> Response:
7171
if isinstance(error.original_error, ResponseException):
7272
status = error.original_error.status
7373

74-
error_trace = ''.join(traceback.format_tb(error.original_error.__traceback__))
74+
error_trace = "".join(traceback.format_tb(error.original_error.__traceback__))
7575
logger.exception(f"Raised a system exception:\n {error_trace}")
7676

7777
content = {"data": result.data, "errors": [err.message for err in errors]}

0 commit comments

Comments
 (0)