From 23bba23a38f2bbfbe28e7b3f4d9a37c397c477cd Mon Sep 17 00:00:00 2001 From: Mr Ruben <37179353+Mr-Ruben@users.noreply.github.com> Date: Sat, 10 Oct 2020 10:42:52 +0200 Subject: [PATCH] Edited print json.loads(result).iteritems() Changed print json.loads(result).iteritems() for print json.loads(result) which is the line used in the other tests. The first will cause errors despite the server (Flask) is well configured. --- .../06_Adding Features to your Mashup/Starter Code/tester.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lesson_3/06_Adding Features to your Mashup/Starter Code/tester.py b/Lesson_3/06_Adding Features to your Mashup/Starter Code/tester.py index b6373d8..e286767 100755 --- a/Lesson_3/06_Adding Features to your Mashup/Starter Code/tester.py +++ b/Lesson_3/06_Adding Features to your Mashup/Starter Code/tester.py @@ -34,7 +34,7 @@ resp, result = h.request(url,'POST') if resp['status'] != '200': raise Exception('Received an unsuccessful status code of %s' % resp['status']) - print json.loads(result).iteritems() + print json.loads(result) url = address + '/restaurants?location=Shanghai+China&mealType=Sandwiches' h = httplib2.Http()