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)