This commit is contained in:
Eric Lay 2024-03-27 19:11:52 -05:00
parent d1f7c1db63
commit 17d87d1ed2
1 changed files with 2 additions and 2 deletions

4
app.py
View File

@ -25,8 +25,8 @@ def current_website_dir():
else: else:
global WEBSITE_DIRS global WEBSITE_DIRS
try: try:
WEBSITE_DIRS.remove('Escape') WEBSITE_DIRS.remove(os.path.isdir(os.path.join(ROOT_DIR, 'Escape')))
WEBSITE_DIRS.remove('Marvel') WEBSITE_DIRS.remove(os.path.isdir(os.path.join(ROOT_DIR, 'Marvel')))
except (ValueError, IndexError) as e: except (ValueError, IndexError) as e:
pass pass
website_dir = random.choice(WEBSITE_DIRS) website_dir = random.choice(WEBSITE_DIRS)