Merge pull request #11 from ineffyble/patch-1

Return false for isInDB if DB does not exist
This commit is contained in:
Linus Svensson
2023-08-27 17:42:10 +02:00
committed by GitHub

View File

@@ -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: