Skip to content

Commit 72bfc3f

Browse files
committed
Fix unicode error in planet sync
Previously, all new titles and texts had a prefix `b'`. Latter is not wanted.
1 parent 189f005 commit 72bfc3f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

inyoka/planet/tasks.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ def sync():
160160
except AttributeError:
161161
max_length = None
162162
if isinstance(locals()[n], str):
163-
setattr(entry, n, force_text(locals()[n][:max_length]).encode('utf-8'))
163+
setattr(entry, n, force_text(locals()[n][:max_length]))
164164
else:
165165
setattr(entry, n, locals()[n])
166166
try:

0 commit comments

Comments
 (0)