mirror of https://gitlab.com/bashrc2/epicyon
Less indentation
parent
3814caeb11
commit
e8ed8c5365
|
@ -883,7 +883,8 @@ def run_newswire_daemon(base_dir: str, httpd,
|
|||
time.sleep(10)
|
||||
# if a new blog post has been created then stop
|
||||
# waiting and recalculate the newswire
|
||||
if os.path.isfile(refresh_filename):
|
||||
if not os.path.isfile(refresh_filename):
|
||||
continue
|
||||
try:
|
||||
os.remove(refresh_filename)
|
||||
except OSError:
|
||||
|
|
3
posts.py
3
posts.py
|
@ -201,7 +201,8 @@ def no_of_followers_on_domain(base_dir: str, handle: str,
|
|||
try:
|
||||
with open(filename, 'r', encoding='utf-8') as fp_followers:
|
||||
for follower_handle in fp_followers:
|
||||
if '@' in follower_handle:
|
||||
if '@' not in follower_handle:
|
||||
continue
|
||||
follower_domain = follower_handle.split('@')[1]
|
||||
follower_domain = remove_eol(follower_domain)
|
||||
if domain == follower_domain:
|
||||
|
|
Loading…
Reference in New Issue