This commit is contained in:
Miroslav Stampar
2017-07-11 14:48:22 +02:00
parent 3f40bf1101
commit 591a60bbde
3 changed files with 6 additions and 3 deletions

View File

@@ -287,6 +287,9 @@ def main():
elif "valueStack.pop" in excMsg and kb.get("dumpKeyboardInterrupt"):
raise SystemExit
elif any(_ in excMsg for _ in ("Broken pipe",)):
raise SystemExit
for match in re.finditer(r'File "(.+?)", line', excMsg):
file_ = match.group(1)
file_ = os.path.relpath(file_, os.path.dirname(__file__))