Traceback (most recent call last): File "morning.py", line 24, in <module> format_add = json_data['main']['temp'] KeyError: 'main'