diff options
author | Tristan Van Berkom <tristan.vanberkom@codethink.co.uk> | 2018-04-19 15:38:09 +0900 |
---|---|---|
committer | Tristan Van Berkom <tristan.vanberkom@codethink.co.uk> | 2018-04-19 15:38:09 +0900 |
commit | 480876af901bd2482623ef42e82fe5a6c26deba9 (patch) | |
tree | 55a7b761928b123b530f99bb79c995e511dd4ccf | |
parent | 6fbc81e73181738acb4d65218ba8870e328d4f3b (diff) | |
download | buildstream-480876af901bd2482623ef42e82fe5a6c26deba9.tar.gz |
buildstream/_context.py: Fixing unused variables
-rw-r--r-- | buildstream/_context.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/buildstream/_context.py b/buildstream/_context.py index 5c4421abe..d605c6ab2 100644 --- a/buildstream/_context.py +++ b/buildstream/_context.py @@ -198,7 +198,7 @@ class Context(): # Shallow validation of overrides, parts of buildstream which rely # on the overrides are expected to validate elsewhere. - for project_name, overrides in _yaml.node_items(self._project_overrides): + for _, overrides in _yaml.node_items(self._project_overrides): _yaml.node_validate(overrides, ['artifacts', 'options', 'strict']) profile_end(Topics.LOAD_CONTEXT, 'load') @@ -380,7 +380,7 @@ class Context(): self._push_message_depth(silent_nested) yield - except BstError as e: + except BstError: # Note the failure in status messages and reraise, the scheduler # expects an error when there is an error. elapsed = datetime.datetime.now() - starttime |