might not be in the last line
This commit is contained in:
parent
93faf4f2b3
commit
7059e6af6e
|
@ -82,7 +82,7 @@ class Marc:
|
|||
f.seek(0)
|
||||
|
||||
try:
|
||||
v = int(re.search('Exit number ([0-9]+)',f.readlines()[-1]).group(1))
|
||||
v = int(re.search('Exit number ([0-9]+)',''.join(f.readlines())).group(1))
|
||||
except (AttributeError,ValueError):
|
||||
raise RuntimeError('Marc simulation failed (unknown return value)')
|
||||
|
||||
|
|
Loading…
Reference in New Issue