Skip to content

list index out of range #10

@morenoh149

Description

@morenoh149

I get this error on kaggle

---------------------------------------------------------------------------
IndexError                                Traceback (most recent call last)
<ipython-input-15-f1891c8d087c> in <module>
----> 1 tz = whenareyou('Madrid')
      2 tz

/opt/conda/lib/python3.6/site-packages/whenareyou/__init__.py in whenareyou(address)
     50     latlong = cached_json_get(
     51         LONG_LAT_URL.format(quote_plus(address))
---> 52     )['results'][0]['geometry']['location']
     53 
     54     return get_tz(latlong['lat'], latlong['lng'])

IndexError: list index out of range

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions