Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create exam: show a better error message for syntax errors in the XML file #73

Open
jfisteus opened this issue Mar 20, 2014 · 0 comments
Assignees

Comments

@jfisteus
Copy link
Owner

Right now, this is dumped to the output:

Traceback (most recent call last):
  File "/usr/lib/python2.7/runpy.py", line 162, in _run_module_as_main
    "__main__", fname, loader, pkg_name)
  File "/usr/lib/python2.7/runpy.py", line 72, in _run_code
    exec code in run_globals
  File "/home/jaf/otros/programas/eyegrade/eyegrade/create_exam.py", line 235, in <module>
    main()
  File "/home/jaf/otros/programas/eyegrade/eyegrade/create_exam.py", line 230, in main
    create_exam()
  File "/home/jaf/otros/programas/eyegrade/eyegrade/create_exam.py", line 130, in create_exam
    exam = utils.read_exam_questions(options.exam_filename)
  File "/home/jaf/otros/programas/eyegrade/eyegrade/utils.py", line 1047, in read_exam_questions
    dom_tree = xml.dom.minidom.parse(exam_filename)
  File "/usr/lib/python2.7/xml/dom/minidom.py", line 1918, in parse
    return expatbuilder.parse(file)
  File "/usr/lib/python2.7/xml/dom/expatbuilder.py", line 924, in parse
    result = builder.parseFile(fp)
  File "/usr/lib/python2.7/xml/dom/expatbuilder.py", line 207, in parseFile
    parser.Parse(buffer, 0)
xml.parsers.expat.ExpatError: not well-formed (invalid token): line 19, column 18
@jfisteus jfisteus added this to the Eyegrade 0.3 milestone Mar 20, 2014
@jfisteus jfisteus self-assigned this Mar 20, 2014
@jfisteus jfisteus removed this from the Eyegrade 0.3 milestone Sep 11, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant