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

Fix exception: TypeError: can't concat bytes to str #25

Merged
merged 1 commit into from
Aug 17, 2018

Conversation

ichramm
Copy link

@ichramm ichramm commented May 8, 2017

Found when studying issue #24

Traceback (most recent call last):
  File "/usr/lib/python3.6/socketserver.py", line 639, in process_request_thread
    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 "./pyicap.py", line 443, in handle
    self.handle_one_request()
  File "./pyicap.py", line 500, in handle_one_request
    self.send_error(e.code, e.message[0])
  File "./pyicap.py", line 525, in send_error
    self.set_icap_response(code, message=message)
  File "./pyicap.py", line 267, in set_icap_response
    (message if message else self._responses[code][0])
TypeError: can't concat bytes to str
----------------------------------------

```
Traceback (most recent call last):
  File "/usr/lib/python3.6/socketserver.py", line 639, in process_request_thread
    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 "./pyicap.py", line 443, in handle
    self.handle_one_request()
  File "./pyicap.py", line 500, in handle_one_request
    self.send_error(e.code, e.message[0])
  File "./pyicap.py", line 525, in send_error
    self.set_icap_response(code, message=message)
  File "./pyicap.py", line 267, in set_icap_response
    (message if message else self._responses[code][0])
TypeError: can't concat bytes to str
----------------------------------------
```
@netom netom merged commit 079aa74 into netom:master Aug 17, 2018
@netom
Copy link
Owner

netom commented Aug 17, 2018

Thank you for the fix.

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

Successfully merging this pull request may close these issues.

2 participants