~azzar1/unity/add-show-desktop-key

« back to all changes in this revision

Viewing changes to bin/ivle-addexercise

Modified ivle-addexercise. It will now (once more) attempt to add every
file given, even if a previous exercise fails to add.

Show diffs side-by-side

added added

removed removed

Lines of Context:
242
242
xmlfiles = sys.argv[1:]
243
243
for xmlfile in xmlfiles:
244
244
    print "Adding exercise", xmlfile
245
 
    #try:
246
 
    add_exercise(xmlfile)
247
 
    #except Exception, e:
248
 
    #    print "ERROR: Could not add file", xmlfile
249
 
    #    print e.stacktrace()
 
245
    try:
 
246
        add_exercise(xmlfile)
 
247
    except Exception, e:
 
248
        print "ERROR: Could not add file", xmlfile
 
249
        print e.stacktrace()