Fix
This commit is contained in:
@@ -10,8 +10,9 @@ root_api_url = 'http://{}/local'.format(sever)
|
||||
base_path = '/app/data/'
|
||||
|
||||
print("API_ROOT: " + str(root_api_url))
|
||||
time.sleep(900)
|
||||
|
||||
#try:
|
||||
try:
|
||||
while True:
|
||||
r = requests.get('{}/anonymize'.format(root_api_url))
|
||||
face_cascade = cv2.CascadeClassifier(cv2.data.haarcascades + 'haarcascade_frontalface_default.xml')
|
||||
@@ -60,9 +61,9 @@ while True:
|
||||
|
||||
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