mirror of
https://github.com/d0zingcat/bluesky-crossposter.git
synced 2026-05-20 15:09:48 +00:00
Merge pull request #11 from ineffyble/patch-1
Return false for isInDB if DB does not exist
This commit is contained in:
@@ -381,7 +381,7 @@ def jsonRead():
|
||||
# Function for checking if a line is already in the database-file
|
||||
def isInDB(line):
|
||||
if not os.path.exists(databasePath):
|
||||
return False
|
||||
return false
|
||||
with open(databasePath, 'r') as file:
|
||||
content = file.read()
|
||||
if line in content:
|
||||
|
||||
Reference in New Issue
Block a user