mirror of https://gitlab.com/bashrc2/epicyon
Less indentation
parent
81d88f2384
commit
da3536c40f
17
posts.py
17
posts.py
|
@ -1141,14 +1141,15 @@ 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:
|
|
||||||
with open(schedule_index_filename, 'w+',
|
try:
|
||||||
encoding='utf-8') as fp_schedule:
|
with open(schedule_index_filename, 'w+',
|
||||||
fp_schedule.write(index_str + '\n')
|
encoding='utf-8') as fp_schedule:
|
||||||
except OSError as ex:
|
fp_schedule.write(index_str + '\n')
|
||||||
print('EX: Failed to write entry to scheduled posts index2 ' +
|
except OSError as ex:
|
||||||
schedule_index_filename + ' ' + str(ex))
|
print('EX: Failed to write entry to scheduled posts index2 ' +
|
||||||
|
schedule_index_filename + ' ' + str(ex))
|
||||||
|
|
||||||
|
|
||||||
def _create_post_cw_from_reply(base_dir: str, nickname: str, domain: str,
|
def _create_post_cw_from_reply(base_dir: str, nickname: str, domain: str,
|
||||||
|
|
Loading…
Reference in New Issue