Skip to content

Commit a9f4e71

Browse files
Ryan MitchellRyan Mitchell
authored andcommitted
Use region name. It's more interesting
1 parent 787685c commit a9f4e71

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

chapter4/6-wikiHistories.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ def getCountry(ipAddress):
3535
except HTTPError:
3636
return None
3737
responseJson = json.loads(response)
38-
return responseJson.get("country_code")
38+
return responseJson["region_name"]
3939

4040
links = getLinks("/wiki/Python_(programming_language)")
4141

0 commit comments

Comments
 (0)