mirror of https://gitlab.com/bashrc2/epicyon
Less indentation
parent
ace9f84d9a
commit
12056b55c2
|
@ -267,7 +267,8 @@ def remove_scheduled_posts(base_dir: str, nickname: str, domain: str) -> None:
|
||||||
return
|
return
|
||||||
for scheduled_post_filename in os.listdir(scheduled_dir):
|
for scheduled_post_filename in os.listdir(scheduled_dir):
|
||||||
file_path = os.path.join(scheduled_dir, scheduled_post_filename)
|
file_path = os.path.join(scheduled_dir, scheduled_post_filename)
|
||||||
if os.path.isfile(file_path):
|
if not os.path.isfile(file_path):
|
||||||
|
continue
|
||||||
try:
|
try:
|
||||||
os.remove(file_path)
|
os.remove(file_path)
|
||||||
except OSError:
|
except OSError:
|
||||||
|
|
Loading…
Reference in New Issue