Some objects become unicode when %s is applied and may cause UnicodeDecodeError, thus use %r insead.
Attach a file by drag & drop or click to upload