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

HTTPFound #114

Closed
mohammadsheikhian opened this issue Aug 27, 2018 · 0 comments
Closed

HTTPFound #114

mohammadsheikhian opened this issue Aug 27, 2018 · 0 comments
Assignees
Labels
bug something isn't working
Milestone

Comments

@mohammadsheikhian
Copy link
Contributor

mohammadsheikhian commented Aug 27, 2018

We get an exception when using return instead raise

return HTTPFount(location='http://www.google.com')

Exception:

Traceback (most recent call last):
  File "/usr/lib/python3.6/socketserver.py", line 317, in _handle_request_noblock
    self.process_request(request, client_address)
  File "/usr/lib/python3.6/socketserver.py", line 348, in process_request
    self.finish_request(request, client_address)
  File "/usr/lib/python3.6/socketserver.py", line 361, in finish_request
    self.RequestHandlerClass(request, client_address, self)
  File "/usr/lib/python3.6/socketserver.py", line 696, in __init__
    self.handle()
  File "/usr/lib/python3.6/wsgiref/simple_server.py", line 133, in handle
    handler.run(self.server.get_app())
  File "/usr/lib/python3.6/wsgiref/handlers.py", line 144, in run
    self.close()
  File "/usr/lib/python3.6/wsgiref/simple_server.py", line 35, in close
    self.status.split(' ',1)[0], self.bytes_sent
AttributeError: 'NoneType' object has no attribute 'split'
@pylover pylover self-assigned this Aug 28, 2018
@pylover pylover added the bug something isn't working label Aug 28, 2018
@pylover pylover added this to the v1.5 milestone Aug 28, 2018
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

2 participants