Commit 50d47921 authored by Pietro Albini's avatar Pietro Albini

Don't crash when a branch wasn't built correctly

parent d8cd00d7
...@@ -83,7 +83,13 @@ class InstancesManager: ...@@ -83,7 +83,13 @@ class InstancesManager:
"run", "-g", "%s.py" % self.manager.gunicorn_config_file, "run", "-g", "%s.py" % self.manager.gunicorn_config_file,
"%s/%s" % (self.manager.caches_dir, branch.name), "%s/%s" % (self.manager.caches_dir, branch.name),
] ]
process = subprocess.Popen(command) try:
process = subprocess.Popen(command)
except FileNotFoundError:
print("managetests: error: can't start the %s branch: executable "
"not found" % branch.name)
return
self._processes[branch.name] = process self._processes[branch.name] = process
def stop(self): def stop(self):
......
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