exit immediately to prevent indefinite invalid runs

This commit is contained in:
HappyZ 2018-02-01 10:35:03 -06:00
parent 62ff707663
commit 7a0a4dbc48
1 changed files with 1 additions and 1 deletions

View File

@ -100,7 +100,7 @@ class Measurement(object):
out, err = p.communicate() out, err = p.communicate()
if err: if err:
print(err) print(err)
return [] exit(13)
matches = re.finditer(self.regex, out) matches = re.finditer(self.regex, out)
if not matches: if not matches:
return [] return []