mirror of
https://github.com/d0zingcat/bluesky-crossposter.git
synced 2026-06-02 15:10:25 +00:00
Added a try to jsonRead to avoid issues caused by incorrectly formatted databases
This commit is contained in:
@@ -415,7 +415,10 @@ def jsonRead():
|
||||
return database
|
||||
with open(databasePath, 'r') as file:
|
||||
for line in file:
|
||||
jsonLine = json.loads(line)
|
||||
try:
|
||||
jsonLine = json.loads(line)
|
||||
except:
|
||||
continue
|
||||
skeet = jsonLine["skeet"]
|
||||
ids = jsonLine["ids"]
|
||||
failed = {"twitter": 0, "mastodon": 0}
|
||||
|
||||
Reference in New Issue
Block a user