Commit 91edab77 authored by Łukasz Nowak's avatar Łukasz Nowak

Fix "slapgrid: Map instances to their installed python"

Allow to have missing bin/buildout of the software release, especially to cover
the case, when SR is not installed for partition being processed, eg in order
to destroy it.
parent e38031a7
......@@ -172,7 +172,7 @@ def getPythonExecutableFromSoftwarePath(software_path):
try:
with open(os.path.join(software_path, 'bin', 'buildout')) as f:
shebang = f.readline()
except OSError:
except (IOError, OSError):
return
if shebang.startswith('#!'):
return shebang[2:].split(None, 1)[0]
......
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