Skip to content
This repository was archived by the owner on Jul 12, 2025. It is now read-only.

Commit 14c8422

Browse files
committed
[simulation] Fix unicode problems
1 parent 42ebbb7 commit 14c8422

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

main.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ def set_location(location_name):
6262
geolocator = GoogleV3()
6363
loc = geolocator.geocode(location_name)
6464

65-
print('[!] Your given location: {}'.format(loc.address))
65+
print('[!] Your given location: {}'.format(loc.address.encode('utf-8')))
6666
print('[!] lat/long/alt: {} {} {}'.format(loc.latitude, loc.longitude, loc.altitude))
6767
set_location_coords(loc.latitude, loc.longitude, loc.altitude)
6868

@@ -115,6 +115,8 @@ def api_req(api_endpoint, access_token, *mehs, **kw):
115115
print(p_ret)
116116
print("\n\n")
117117

118+
print("Sleeping for 2 seconds to get around rate-limit.")
119+
time.sleep(2)
118120
return p_ret
119121
except Exception, e:
120122
if DEBUG:

0 commit comments

Comments
 (0)