mirror of
https://github.com/d0zingcat/bluesky-crossposter.git
synced 2026-05-13 15:09:25 +00:00
Fixed issues resulting from code running without a db file
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user