dependency_fallback: Simplify useless try block

This commit is contained in:
Xavier Claessens 2018-12-29 16:37:26 -05:00 committed by Xavier Claessens
parent b209a3cd8f
commit f6a34c8aaf
1 changed files with 1 additions and 5 deletions

View File

@ -3071,11 +3071,7 @@ external dependencies (including libraries) must go to "dependencies".''')
dirname, varname = self.get_subproject_infos(kwargs)
# Try to execute the subproject
try:
sp_kwargs = {}
try:
sp_kwargs['default_options'] = kwargs['default_options']
except KeyError:
pass
sp_kwargs = {'default_options': kwargs.get('default_options', [])}
self.do_subproject(dirname, sp_kwargs)
# Invalid code is always an error
except InvalidCode: