correctly handle null version

parent fbc712f1
......@@ -53,7 +53,7 @@ def parse(filename):
p.startedParsingSession(filename, parser_info)
with o(p, 'section_run'):
p.addValue('program_name', 'ASAP')
if hasattr(t, 'ase_version'):
if hasattr(t, 'ase_version') and t.ase_version:
aversion = t.ase_version
aversion = '3.x.x' # default Asap version
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment