From b808d23965d57d518c77c5902d9dd1f0a83b25d5 Mon Sep 17 00:00:00 2001 From: william Date: Mon, 30 May 2016 23:49:05 -0400 Subject: [PATCH] stuff --- testAPI.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/testAPI.py b/testAPI.py index 0832361..e507afd 100644 --- a/testAPI.py +++ b/testAPI.py @@ -11,9 +11,9 @@ def testAPI(times=100, sleep=2): data={'code': 'pwd'} ) if res.status_code != 200: errors += 1 - print(i, res.status_code, r.content) + print(i, res.status_code, res.content) except: print('caught error') errors += 1 time.sleep(sleep) - print('errors ', errors, (errors/times)*100) \ No newline at end of file + print('errors ', errors, (errors/times)*100)