-
Notifications
You must be signed in to change notification settings - Fork 691
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
TypeError: can only concatenate str (not "bytes") to str #74
Comments
Because of 401: cookies:{'BrowserCookie': '1481717c-9e93-4ef8-...1ea54b723', 'csrfsafari': 'wqOUcWBE9xxhFPqHR1F...7m8Fba3CM', 'sessionid': '0cddpq1y7dbesga....pyw8s57m7'} Works with cookie.json see Issue #2 |
e4c8c55 should fix this issue. |
Pull last commit: b96819b |
Thank you, indeed, this solved the problem. |
In windows 10, when I run the command
D:\safaribooks>python safaribooks.py --cred "myemail:mypassword" bookisbn
the following error occurs;
Error in sys.excepthook:
Traceback (most recent call last):
File "safaribooks.py", line 98, in unhandled_exception
self.exit("Unhandled Exception: %s (type: %s)" % (o, o.class.name))
File "safaribooks.py", line 84, in exit
self.error(str(error))
File "safaribooks.py", line 81, in error
self.out(output)
File "safaribooks.py", line 67, in out
sys.stdout.write("\r" + " " * self.columns + "\r" + put.encode("utf-8", "replace") + "\n")
TypeError: can only concatenate str (not "bytes") to str
Original exception was:
Traceback (most recent call last):
File "safaribooks.py", line 1026, in
SafariBooks(args_parsed)
File "safaribooks.py", line 274, in init
self.display.intro()
File "safaribooks.py", line 117, in intro
self.out(output)
File "safaribooks.py", line 67, in out
sys.stdout.write("\r" + " " * self.columns + "\r" + put.encode("utf-8", "replace") + "\n")
TypeError: can only concatenate str (not "bytes") to str
The text was updated successfully, but these errors were encountered: