Mercurial > hg > webaudioevaluationtool
changeset 2831:151ae5a4b979
Make score_parser resiliant to interface-name="null" bug.
author | Nicholas Jillings <nicholas.jillings@mail.bcu.ac.uk> |
---|---|
date | Wed, 10 May 2017 11:16:02 +0100 |
parents | cf1a3a529177 |
children | 740f273226c3 |
files | python/score_parser.py |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/python/score_parser.py Tue May 09 15:42:59 2017 +0100 +++ b/python/score_parser.py Wed May 10 11:16:02 2017 +0100 @@ -85,7 +85,7 @@ audioElement = page.find("./audioelement/[@ref='"+ fragmentname+ "']") # Get the element for value in audioElement.findall('./value'): axisName = value.get('interface-name') - if axisName == None: + if axisName == None or axisName == "null": axisName = 'default' axisStore = storage[page_name]['axis'][axisName] if hasattr(value, 'text'):