diff --git a/fmhy-search.py b/fmhy-search.py index 21782e3..98dd3fb 100644 --- a/fmhy-search.py +++ b/fmhy-search.py @@ -98,7 +98,7 @@ def dlWikiChunk(fileName, icon, redditSubURL): try: #First, try to get it from the local file print("Loading " + fileName + " from local file...") - with open(fileName, 'r') as f: + with open(fileName.lower(), 'r') as f: page = f.read() print("Loaded.\n") #if not available locally, download the chunk