Skip to content

Commit

Permalink
fix: create empty list if no file exists for retreivable list
Browse files Browse the repository at this point in the history
  • Loading branch information
darkobas committed Nov 24, 2022
1 parent ba2ba6d commit f830eba
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions swarmsync.py
Original file line number Diff line number Diff line change
Expand Up @@ -369,6 +369,9 @@ def check():
colour='#ff8c00',
leave=True)
asyncio.run(async_check(scheduled))
# init file
if not Path(RETRIEVABLE).is_file():
write_dict(RETRIEVABLE, '[]')

# Initialize parser
parser = argparse.ArgumentParser()
Expand Down

0 comments on commit f830eba

Please sign in to comment.