Commit e05ff43e authored by Wesierski, Lukasz's avatar Wesierski, Lukasz Committed by gbsbuild

Fix issue on clearlinux with generating _igc_bif_BC_122_size.

Fixes #75

Change-Id: I105e7818dd6b7491e497882b461b43f704c7ce7b
parent e5229c2b
......@@ -76,7 +76,7 @@ try:
try:
outFile = open(sys.argv[2], 'wb')
outFile = open(sys.argv[2], 'w')
except EnvironmentError as ex:
sys.stderr.write('ERROR: Cannot create/open output file "{0}".\n {1}.\n'.format(sys.argv[2], ex.strerror))
exit(1)
......@@ -103,6 +103,9 @@ try:
except Exception as ex:
sys.stderr.write('ERROR: Unknown error.\n {0}.\n'.format(repr(ex)))
for openedFile in openedFiles:
openedFile.close()
exit(1)
finally:
for openedFile in openedFiles:
openedFile.close()
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment