diff --git a/crosspost.py b/crosspost.py index 767158e..54e93c8 100644 --- a/crosspost.py +++ b/crosspost.py @@ -373,6 +373,8 @@ 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 with open(databasePath, 'r') as file: content = file.read() if line in content: