Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

local variable 'response_status' referenced before assignment #6

Closed
Gr1N opened this issue Sep 2, 2019 · 0 comments
Closed

local variable 'response_status' referenced before assignment #6

Gr1N opened this issue Sep 2, 2019 · 0 comments
Labels
bug Something isn't working

Comments

@Gr1N
Copy link
Owner

Gr1N commented Sep 2, 2019

GeneratorExit: null
  File "aiodogstatsd/contrib/aiohttp.py", line 65, in middleware
    response = await handler(request)

UnboundLocalError: local variable 'response_status' referenced before assignment
  File "aiohttp/web_app.py", line 458, in _handle
    resp = await handler(request)
  File "aiohttp/web_middlewares.py", line 119, in impl
    return await handler(request)
  File "aiodogstatsd/contrib/aiohttp.py", line 75, in middleware
    request, response_status, collect_not_allowed, collect_not_found

Need to handle BaseException too.

@Gr1N Gr1N added the bug Something isn't working label Sep 2, 2019
@Gr1N Gr1N closed this as completed Nov 3, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant