Skip to content

Commit

Permalink
unused vars in exception
Browse files Browse the repository at this point in the history
  • Loading branch information
tremble committed Oct 20, 2020
1 parent c44b7a4 commit 3834e9f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion plugins/modules/data_pipeline.py
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ def pipeline_description(client, dp_id):
"""
try:
return client.describe_pipelines(pipelineIds=[dp_id])
except ClientError as e:
except ClientError:
raise DataPipelineNotFound


Expand Down
4 changes: 2 additions & 2 deletions plugins/modules/s3_lifecycle.py
Original file line number Diff line number Diff line change
Expand Up @@ -477,13 +477,13 @@ def main():
if expiration_date is not None:
try:
datetime.datetime.strptime(expiration_date, "%Y-%m-%dT%H:%M:%S.000Z")
except ValueError as e:
except ValueError:
module.fail_json(msg="expiration_date is not a valid ISO-8601 format. The time must be midnight and a timezone of GMT must be included")

if transition_date is not None:
try:
datetime.datetime.strptime(transition_date, "%Y-%m-%dT%H:%M:%S.000Z")
except ValueError as e:
except ValueError:
module.fail_json(msg="expiration_date is not a valid ISO-8601 format. The time must be midnight and a timezone of GMT must be included")

if state == 'present':
Expand Down

0 comments on commit 3834e9f

Please sign in to comment.