# Emitting an event now can cause a segfault in devices using the Asyncio green mode,
# if the Tango polling thread is accessing the same attribute we push an event for.
#
# See https://gitlab.com/tango-controls/cppTango/-/merge_requests/1316
# and https://gitlab.com/tango-controls/pytango/-/merge_requests/729
raiseRuntimeError(
f"Cannot send change event for attribute {attr_name} of device {self.device} as it is already polled by Tango. Calling push_change_event can cause a Segmentation Fault."