Skip to content

Commit

Permalink
Missed this update
Browse files Browse the repository at this point in the history
  • Loading branch information
julesghub committed Jun 7, 2024
1 parent 12d8181 commit 8993651
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/underworld/_net/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@ def get_geo_info():
try:
with urllib.request.urlopen(url) as response:
if response.status == 200:
data = response.json()
tmp = response.read().decode('utf-8')
data = json.loads(tmp)
return {
"country": data.get("country"),
"region": data.get("region"),
Expand Down

0 comments on commit 8993651

Please sign in to comment.