Skip to content

Commit f495406

Browse files
Restyled by black
1 parent d3e5fc9 commit f495406

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
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: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -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)