mirror of
https://github.com/blakeblackshear/frigate.git
synced 2025-10-07 08:21:06 +08:00
Catch unpickling error
This commit is contained in:

committed by
Blake Blackshear

parent
0d5a49ab82
commit
847b03e71b
@@ -1,6 +1,7 @@
|
|||||||
"""Facilitates communication between processes."""
|
"""Facilitates communication between processes."""
|
||||||
|
|
||||||
import multiprocessing as mp
|
import multiprocessing as mp
|
||||||
|
from _pickle import UnpicklingError
|
||||||
from multiprocessing.synchronize import Event as MpEvent
|
from multiprocessing.synchronize import Event as MpEvent
|
||||||
from typing import Any, Optional
|
from typing import Any, Optional
|
||||||
|
|
||||||
@@ -50,7 +51,7 @@ class ConfigSubscriber:
|
|||||||
return (topic, obj)
|
return (topic, obj)
|
||||||
else:
|
else:
|
||||||
return (None, None)
|
return (None, None)
|
||||||
except (zmq.ZMQError, UnicodeDecodeError):
|
except (zmq.ZMQError, UnicodeDecodeError, UnpicklingError):
|
||||||
return (None, None)
|
return (None, None)
|
||||||
|
|
||||||
def stop(self) -> None:
|
def stop(self) -> None:
|
||||||
|
Reference in New Issue
Block a user