diff --git a/weather.py b/weather.py index ad92091..607e046 100644 --- a/weather.py +++ b/weather.py @@ -104,8 +104,8 @@ class WeatherApi: if not location: if user_preferences[nick]['location']: location = user_preferences[nick]['location'] - else: - raise NoDefaultLocation() + else: + raise NoDefaultLocation() # URL for current conditions current_url = f"{self.weather_api_url}/current.json?key={self.api_key}&q={location}&qai=no"