This repository was archived by the owner on Mar 17, 2021. It is now read-only.
This repository was archived by the owner on Mar 17, 2021. It is now read-only.
TaurusCommandButton.setParameter fails with empty string #246
Open
Description
To reproduce, execute the following code:
from taurus.qt.qtgui.application import TaurusApplication
from taurus.qt.qtgui.button import TaurusCommandButton
app = TaurusApplication()
w = TaurusCommandButton()
w.setParameters('')
You get (tested on taurus 4 and 3.7):
Traceback (most recent call last):
File "/home/cpascual/.PyCharm50/config/scratches/scratch_47", line 6, in <module>
w.setParameters('')
File "/home/cpascual/src/taurus/lib/taurus/qt/qtgui/button/taurusbutton.py", line 450, in setParameters
if parameters[0] in ('"', "'") and parameters[0] == parameters[-1]:
IndexError: string index out of range
Reported by: cpascual ( http://sf.net/u/cpascual )