Skip to content

Commit

Permalink
Trying to fix strange weahter behavior. #246
Browse files Browse the repository at this point in the history
  • Loading branch information
theyosh committed Jan 29, 2019
1 parent 6cf14ae commit 0cec1e1
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion terrariumEngine.py
Original file line number Diff line number Diff line change
Expand Up @@ -595,7 +595,12 @@ def get_weather_config(self):
return self.weather.get_config()

def get_weather(self, parameters = [], socket = False):
data = self.weather.get_data()
try:
data = self.weather.get_data()
except Exception as ex:
logger.error('Strange weather.. error https://github.com/theyosh/TerrariumPI/issues/246: {}'.format(ex))
return None

self.environment.update()

if socket:
Expand Down

0 comments on commit 0cec1e1

Please sign in to comment.