secsgem
secsgem copied to clipboard
Exception raised in _ce_sender thread
There are a couple of uncaught exceptions output by pytest, e.g.,
tests/test_gem_equipment_handler.py::TestGemEquipmentHandler::testControlInitialStateOnlineLocal
/home/runner/work/secsgem/secsgem/.venv/lib/python3.12/site-packages/_pytest/threadexception.py:73: PytestUnhandledThreadExceptionWarning: Exception in thread Thread-2 (_ce_sender)
Traceback (most recent call last):
File "/opt/hostedtoolcache/Python/3.12.2/x64/lib/python3.12/threading.py", line 1073, in _bootstrap_inner
self.run()
File "/opt/hostedtoolcache/Python/3.12.2/x64/lib/python3.12/threading.py", line 1010, in run
self._target(*self._args, **self._kwargs)
File "/home/runner/work/secsgem/secsgem/secsgem/gem/collection_event_capability.py", line 124, in _ce_sender
if ceid in self._registered_collection_events and self._registered_collection_events[ceid].enabled:
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'GemEquipmentHandler' object has no attribute '_registered_collection_events'. Did you mean: 'registered_collection_events'?
warnings.warn(pytest.PytestUnhandledThreadExceptionWarning(msg))
I guess that there is a super().__init__()
call missing somewhere.