diff scripts/score_parser.py @ 209:538322113524 Dev_main

Merge from the default branch
author Nicholas Jillings <n.g.r.jillings@se14.qmul.ac.uk>
date Tue, 16 Jun 2015 14:14:08 +0100
parents 59eea6eed91b
children fc056b63e208
line wrap: on
line diff
--- a/scripts/score_parser.py	Thu Jun 11 10:06:58 2015 +0100
+++ b/scripts/score_parser.py	Tue Jun 16 14:14:08 2015 +0100
@@ -18,6 +18,9 @@
         for audioholder in root.findall("./audioholder"):    # iterate over pages
             page_name = audioholder.get('id') # get page name
             #print ["DEBUG    page " + page_name]
+            
+            if page_name is None: # ignore 'empty' audio_holders
+                break
 
             file_name = 'ratings/'+page_name+'-ratings.csv' # score file name