Commit c0b8d81c authored by Cédric's avatar Cédric
Browse files

Bug fix.

parent ef796ce0
......@@ -32,4 +32,8 @@ def rain():
if result.status_code != 200:
return True
json_result = json.loads(result.text)
return json_result['weather'][0]['main'] != 'Rain'
\ No newline at end of file
try:
return json_result['weather'][0]['main'] != 'Rain'
except:
return True
\ No newline at end of file
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment