taurus-org / taurus

Moved to https://gitlab.com/taurus-org/taurus
http://taurus-scada.org
43 stars 46 forks source link

Avoid NoneType AttributeError #1072

Closed cmft closed 4 years ago

cmft commented 4 years ago

TaurusValueLineEdit._updateValidator method reads the range from the model object and this can be None (not initialized).

Use the range of the given taurus value.

Fix #1071

cpascual commented 4 years ago

Hi, thanks for the PR. However, this is making the tests fail because it uses a deprecated API:

TangoAttrValue.range is deprecated since 4.0. Use TangoAttribute.range instead