Fixed issues resulting from code running without a db file

This commit is contained in:
Linus2punkt0
2023-09-14 09:49:44 +02:00
parent 208d58fd4d
commit 01d28265c9

View File

@@ -406,7 +406,7 @@ def jsonWrite(skeet, tweet, toot, failed):
def jsonRead():
database = {}
if not os.path.exists(databasePath):
return
return database
with open(databasePath, 'r') as file:
for line in file:
jsonLine = json.loads(line)