diff --git a/scraper_functions.py b/scraper_functions.py index 467dacc..49c94ca 100644 --- a/scraper_functions.py +++ b/scraper_functions.py @@ -51,7 +51,7 @@ def getDmzTasks(url): def get_weather(city:str) -> str: url = f"https://wttr.in/{city}?format=3" - if not city.isalpha(): + if not city.replace(" ","").isalpha(): return "no such city" resp = requests.get(url) return resp.content.decode("utf-8").strip()