mirror of
https://github.com/blakeblackshear/frigate.git
synced 2025-08-08 13:51:01 +02:00
Catch unpickling error
This commit is contained in:
parent
b142a69c89
commit
54bee5ed85
@ -1,6 +1,7 @@
|
||||
"""Facilitates communication between processes."""
|
||||
|
||||
import multiprocessing as mp
|
||||
from _pickle import UnpicklingError
|
||||
from multiprocessing.synchronize import Event as MpEvent
|
||||
from typing import Any, Optional
|
||||
|
||||
@ -50,7 +51,7 @@ class ConfigSubscriber:
|
||||
return (topic, obj)
|
||||
else:
|
||||
return (None, None)
|
||||
except (zmq.ZMQError, UnicodeDecodeError):
|
||||
except (zmq.ZMQError, UnicodeDecodeError, UnpicklingError):
|
||||
return (None, None)
|
||||
|
||||
def stop(self) -> None:
|
||||
|
Loading…
Reference in New Issue
Block a user