main
Bob Mottram 2024-07-11 15:02:03 +01:00
parent b69e88aa5c
commit cfd017158b
1 changed files with 9 additions and 8 deletions

View File

@ -82,7 +82,8 @@ def create_initial_last_seen(base_dir: str, http_prefix: str) -> None:
actor = local_actor_url(http_prefix, nickname, domain)
last_seen_filename = \
last_seen_dir + '/' + actor.replace('/', '#') + '.txt'
if not os.path.isfile(last_seen_filename):
if os.path.isfile(last_seen_filename):
continue
try:
with open(last_seen_filename, 'w+',
encoding='utf-8') as fp_last: