Skip to content

Commit b97f9e7

Browse files
committed
Clean up.
1 parent 955fac7 commit b97f9e7

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

wllvm/extraction.py

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -351,17 +351,16 @@ def handleArchive(pArgs):
351351
arCmd = ['ar', 'xN', str(i), inputFile, filename] #iam: check if this might be os dependent
352352
try:
353353
arP = Popen(arCmd)
354-
except OSError as e:
355-
errorMsg = 'OS error({0}): {1}'.format(e.errno, e.strerror)
356-
_logger.error(errorMsg)
357-
raise Exception(errorMsg)
354+
except Exception as e:
355+
_logger.error(e)
356+
return
358357

359358
arPE = arP.wait()
360359

361360
if arPE != 0:
362361
errorMsg = 'Failed to execute archiver with command {0}'.format(arCmd)
363362
_logger.error(errorMsg)
364-
raise Exception(errorMsg)
363+
return
365364

366365
# Extract bitcode locations from object
367366
contents = pArgs.extractor(filename)
@@ -370,6 +369,9 @@ def handleArchive(pArgs):
370369
for path in contents:
371370
if path:
372371
bitCodeFiles.append(path)
372+
else:
373+
_logger.debug('From instance {0} of {1} in {2} we extracted NOTHING\n'.format(i, filename, inputFile))
374+
373375
finally:
374376
# Delete the temporary folder
375377
_logger.debug('Deleting temporary folder "%s"', tempDir)

0 commit comments

Comments
 (0)