Test
This commit is contained in:
@@ -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)
|
||||
# data = {"trace": str(e)}
|
||||
# response = requests.post('{}/log'.format(root_api_url), json=data)
|
||||
Reference in New Issue
Block a user