``` File "/usr/local/lib/python3.4/dist-packages/pymysql/converters.py", line 264, in convert_mysql_timestamp timestamp += "0"*(14-len(timestamp)) # padding TypeError: can't concat bytes to str print(type(timestamp)): b'2015-01-13 04:37:49' <class 'bytes'> ``` Temporarily solved the problem this way: ``` if isinstance(timestamp, bytes): timestamp = timestamp.decode() ```
Activity
methane commentedon Mar 3, 2015
Do you use
use_unicode=False?Strelok2015Strelok commentedon Mar 3, 2015
Yes, I used use_unicode = False
Thank you, this has helped to solve the problem:
&use_unicode=True
methane commentedon Mar 3, 2015
OK. I got it.
methane commentedon Mar 3, 2015
Don't close this until I fix it.