mxcube / mxcubecore

Backend used by MXCuBE
http://mxcube.github.io/mxcube/
GNU Lesser General Public License v3.0
11 stars 51 forks source link

Tango poller: retry reading on tango errors #929

Closed elmjag closed 1 month ago

elmjag commented 1 month ago

When polling tango attributes, catch tango communication errors. On error, log a warning and try again reading the attribute again. In our case, we need this for a tango device that intermittently replies slowly, thus causing timeout errors.

As a small bonus, I tacked on changes to make mxcubecore/Command/Tango.py black compliant.

marcus-oscarsson commented 1 month ago

Thanks