mirror of
https://github.com/bellingcat/instagram-location-search.git
synced 2026-06-08 02:28:29 +03:00
Catch correct JSON error
This commit is contained in:
@@ -31,7 +31,7 @@ def get_instagram_locations(lat, lng, cookie):
|
||||
|
||||
try:
|
||||
locations = response.json()
|
||||
except json.JSONDecodeError:
|
||||
except json.decoder.JSONDecodeError:
|
||||
print(f"Failed to get location data for {lat_long}: please check you have a valid cookie")
|
||||
return []
|
||||
|
||||
|
||||
@@ -3,7 +3,7 @@ _MAJOR = "1"
|
||||
_MINOR = "4"
|
||||
# On main and in a nightly release the patch should be one ahead of the last
|
||||
# released build.
|
||||
_PATCH = "1"
|
||||
_PATCH = "2"
|
||||
# This is mainly for nightly builds which have the suffix ".dev$DATE". See
|
||||
# https://semver.org/#is-v123-a-semantic-version for the semantics.
|
||||
_SUFFIX = ""
|
||||
|
||||
Reference in New Issue
Block a user