Skip to content

Commit

Permalink
FIX: exception for missing process name was not handled properly
Browse files Browse the repository at this point in the history
  • Loading branch information
pebert committed Dec 30, 2016
1 parent b1725b7 commit 50f1e4f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions validation/mdvalid.py
Original file line number Diff line number Diff line change
Expand Up @@ -556,11 +556,10 @@ def validate_files(files, schema, encoding, args):
outlog().info('Checking: [XML] {} | [AMD] {}'.format(os.path.basename(xmlfile), os.path.basename(amdfile)))
try:
process = parse_xml(xmlfile, xmlparser)
processname, processver = get_process_info(process)
except Exception:
retcode = 1
else:
processname, processver = get_process_info(process)
retcode = 0
if schema.validate(process):
errlog().debug('XML file {} validates against schema'.format(os.path.basename(xmlfile)))
if args.annoying:
Expand Down

0 comments on commit 50f1e4f

Please sign in to comment.