style(pep8): remove unreferenced variables
This patch set removes unreferenced exception variables indentified by PEP8. Follow up patch sets will perform: - Better exception handling and messaging; - CICD pipeline should correctly fail these PEP8 violation. Change-Id: I681a2d3c7836eb10a5906d4b035e99aff574b18d Signed-off-by: Tin Lam <tin@irrational.io>
This commit is contained in:
parent
60b8a37f47
commit
1d350a61f7
@ -54,7 +54,7 @@ class BaseResource(object):
|
||||
|
||||
try:
|
||||
return list(yaml.safe_load_all(raw_body.decode('utf-8')))
|
||||
except yaml.YAMLError as jex:
|
||||
except yaml.YAMLError:
|
||||
with excutils.save_and_reraise_exception():
|
||||
self.error(
|
||||
req.context,
|
||||
|
@ -134,7 +134,7 @@ class TestReleasesManifestController(api.BaseResource):
|
||||
tiller_namespace=req.get_param(
|
||||
'tiller_namespace', default=CONF.tiller_namespace))
|
||||
# TODO(fmontei): Provide more sensible exception(s) here.
|
||||
except Exception as e:
|
||||
except Exception:
|
||||
err_message = 'Failed to initialize Tiller handler.'
|
||||
self.error(req.context, err_message)
|
||||
return self.return_error(
|
||||
|
Loading…
Reference in New Issue
Block a user