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

assert mimetype is not None #133

Open
emmanuelito opened this issue Apr 5, 2022 · 0 comments
Open

assert mimetype is not None #133

emmanuelito opened this issue Apr 5, 2022 · 0 comments

Comments

@emmanuelito
Copy link

emmanuelito commented Apr 5, 2022

Error / tuna 0.5.11 / installed with pip

When called with invalid URL, instead of a clean 404, we get

Exception occurred during processing of request from ('192.168.64.1', 62031)
Traceback (most recent call last):
  File "/usr/lib/python3.9/socketserver.py", line 316, in _handle_request_noblock
    self.process_request(request, client_address)
  File "/usr/lib/python3.9/socketserver.py", line 347, in process_request
    self.finish_request(request, client_address)
  File "/usr/lib/python3.9/socketserver.py", line 360, in finish_request
    self.RequestHandlerClass(request, client_address, self)
  File "/usr/lib/python3.9/socketserver.py", line 720, in __init__
    self.handle()
  File "/usr/lib/python3.9/http/server.py", line 427, in handle
    self.handle_one_request()
  File "/usr/lib/python3.9/http/server.py", line 415, in handle_one_request
    method()
  File "/opt/scodoc/venv/lib/python3.9/site-packages/tuna/main.py", line 59, in do_GET
    assert mimetype is not None
AssertionError
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant