Skip to content

Commit

Permalink
throws no exception when no weather api key
Browse files Browse the repository at this point in the history
  • Loading branch information
LGD-Fr committed Oct 10, 2015
1 parent 7b424dc commit b0ceb65
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion paiji2_weather/templatetags/weather_fetcher.py
Expand Up @@ -5,7 +5,11 @@
from django.conf import settings


API_KEY = settings.OPENWEATHERMAP_API_KEY
try:
API_KEY = settings.OPENWEATHERMAP_API_KEY
except Exception as e:
print(e)
API_KEY = ''


class WeatherFetcher(object):
Expand Down

0 comments on commit b0ceb65

Please sign in to comment.