From ec6ff85d06737466fc4902a6b2bf4511c15f41fb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A1s=20Veres-Szentkir=C3=A1lyi?= Date: Tue, 19 Apr 2016 11:01:17 +0200 Subject: [PATCH] codegen: avoid masking exceptions if exe doesn't exist yet --- pysstv/examples/codegen.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pysstv/examples/codegen.py b/pysstv/examples/codegen.py index 37db03e..de83e5e 100644 --- a/pysstv/examples/codegen.py +++ b/pysstv/examples/codegen.py @@ -137,7 +137,10 @@ def test(): print ' - speedup:', python_elapsed.total_seconds() / native_elapsed.total_seconds() print 'OK' finally: - remove(exe) + try: + remove(exe) + except OSError: + pass if __name__ == '__main__':