Skip to content

Commit 661bf21

Browse files
authored
Merge pull request #338 from jpalat/337-parse-httpbin-response
Fixes 377 by parsing the json returned from httpbin.org.
2 parents 6508f1c + 28aa85f commit 661bf21

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

psiturk/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ def get_my_ip():
1313
else:
1414
my_ip = json.load(urllib2.urlopen(
1515
'http://httpbin.org/ip'
16-
))['origin']
16+
))['origin'].split(',')[0]
1717
return my_ip
1818

1919
def colorize(target, color, use_escape=True):

0 commit comments

Comments
 (0)