codegen: avoid masking exceptions if exe doesn't exist yet

This commit is contained in:
András Veres-Szentkirályi 2016-04-19 11:01:17 +02:00
parent 43d1c53514
commit ec6ff85d06

View file

@ -137,7 +137,10 @@ def test():
print ' - speedup:', python_elapsed.total_seconds() / native_elapsed.total_seconds() print ' - speedup:', python_elapsed.total_seconds() / native_elapsed.total_seconds()
print 'OK' print 'OK'
finally: finally:
remove(exe) try:
remove(exe)
except OSError:
pass
if __name__ == '__main__': if __name__ == '__main__':