From a2da806d6544b9d62b67c244068a789f411f07eb Mon Sep 17 00:00:00 2001 From: JonatanRek Date: Sat, 5 Oct 2024 21:36:00 +0200 Subject: [PATCH] Test --- app.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/app.py b/app.py index d872006..87b31ea 100644 --- a/app.py +++ b/app.py @@ -11,7 +11,7 @@ base_path = '/app/data/' print(str(root_api_url)) -try: +#try: while True: r = requests.get('{}/anonymize'.format(root_api_url)) face_cascade = cv2.CascadeClassifier(cv2.data.haarcascades + 'haarcascade_frontalface_default.xml') @@ -59,9 +59,9 @@ try: time.sleep(900) -except Exception as e: - print("An exception occurred") - print(str(e)) +# except Exception as e: +# print("An exception occurred") +# print(str(e)) - data = {"trace": str(e)} - response = requests.post('{}/log'.format(root_api_url), json=data) \ No newline at end of file +# data = {"trace": str(e)} +# response = requests.post('{}/log'.format(root_api_url), json=data) \ No newline at end of file