Skip to content

Commit 923bfae

Browse files
pelsonasvetlov
authored andcommitted
Fixed the formatting of an error handling bad middleware return types. (#249)
1 parent dd95793 commit 923bfae

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

aiohttp_session/__init__.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,8 @@ async def factory(request, handler):
134134
response = exc
135135
raise_response = True
136136
if not isinstance(response, web.StreamResponse):
137-
raise RuntimeError("Expect response, not {!r}", type(response))
137+
raise RuntimeError(
138+
"Expect response, not {!r}".format(type(response)))
138139
if not isinstance(response, web.Response):
139140
# likely got websoket or streaming
140141
return response

0 commit comments

Comments
 (0)