mirror of
https://github.com/blakeblackshear/frigate.git
synced 2025-08-22 13:47:29 +02:00
Catch unpickling error
This commit is contained in:
parent
98232af0fc
commit
20dac9d05e
@ -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:
|
||||||
|
Loading…
Reference in New Issue
Block a user