mirror of https://gitlab.com/bashrc2/epicyon
Specify encoding
parent
b371b4047f
commit
644acec469
|
@ -51,7 +51,8 @@ def _update_feeds_outbox_index(base_dir: str, domain: str,
|
||||||
if os.path.isfile(index_filename):
|
if os.path.isfile(index_filename):
|
||||||
if not text_in_file(post_id, index_filename):
|
if not text_in_file(post_id, index_filename):
|
||||||
try:
|
try:
|
||||||
with open(index_filename, 'r+') as feeds_file:
|
with open(index_filename, 'r+',
|
||||||
|
encoding='utf-8') as feeds_file:
|
||||||
content = feeds_file.read()
|
content = feeds_file.read()
|
||||||
if post_id + '\n' not in content:
|
if post_id + '\n' not in content:
|
||||||
feeds_file.seek(0, 0)
|
feeds_file.seek(0, 0)
|
||||||
|
|
Loading…
Reference in New Issue