Catch All exceptions instead of BrokenPipeError
This commit is contained in:
parent
77a12186bf
commit
d0791a4693
@ -76,7 +76,7 @@ def update_to_client(client, address, queue):
|
|||||||
time_elapsed = time.time()
|
time_elapsed = time.time()
|
||||||
(frame_bgr, emotions) = queue.get()
|
(frame_bgr, emotions) = queue.get()
|
||||||
send_image_and_emotions(client, address, frame_bgr, emotions)
|
send_image_and_emotions(client, address, frame_bgr, emotions)
|
||||||
except BrokenPipeError:
|
except Exception:
|
||||||
print_disconnect(address)
|
print_disconnect(address)
|
||||||
client.close()
|
client.close()
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user