mirror of https://gitlab.com/bashrc2/epicyon
Less indentation
parent
81d88f2384
commit
da3536c40f
3
posts.py
3
posts.py
|
@ -1141,7 +1141,8 @@ def _add_schedule_post(base_dir: str, nickname: str, domain: str,
|
||||||
except OSError as ex:
|
except OSError as ex:
|
||||||
print('EX: Failed to write entry to scheduled posts index ' +
|
print('EX: Failed to write entry to scheduled posts index ' +
|
||||||
schedule_index_filename + ' ' + str(ex))
|
schedule_index_filename + ' ' + str(ex))
|
||||||
else:
|
return
|
||||||
|
|
||||||
try:
|
try:
|
||||||
with open(schedule_index_filename, 'w+',
|
with open(schedule_index_filename, 'w+',
|
||||||
encoding='utf-8') as fp_schedule:
|
encoding='utf-8') as fp_schedule:
|
||||||
|
|
Loading…
Reference in New Issue