dependency_fallback: Simplify useless try block
This commit is contained in:
parent
b209a3cd8f
commit
f6a34c8aaf
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue