Exit if the build system can't be cloned
This commit is contained in:
parent
4c567d903e
commit
e09305afac
1 changed files with 8 additions and 2 deletions
|
@ -585,8 +585,14 @@ def _gen(possible_dirs):
|
|||
realish_github = GitHub(tempfile.mkdtemp(),"system")
|
||||
build_system = realish_github.addon("build", readonly=True)
|
||||
return build_system, True
|
||||
bs, fresh = _get_build_system(possible_dirs)
|
||||
bs.update()
|
||||
try:
|
||||
bs, fresh = _get_build_system(possible_dirs)
|
||||
bs.update()
|
||||
except Error as e:
|
||||
# Exception to make sure nobody catches it
|
||||
# Use raise ... from syntax in python3
|
||||
import sys
|
||||
raise Exception(str(e)), None, sys.exc_info()[2]
|
||||
# Add references to shutil and os to ensure we're destructed before they are
|
||||
stored_shutil = shutil
|
||||
stored_os = os
|
||||
|
|
Loading…
Add table
Reference in a new issue