Skip to content

Commit 86a93f6

Browse files
committed
Fixing Bandit security check failure.
Signed-off-by: lakshmj <lakshman.mj@cloud.com>
1 parent 99a72f8 commit 86a93f6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

plugins/module_utils/las_utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,7 @@ def _post_json(self, url, headers, payload, log_payload=True):
280280
try:
281281
error_body = e.read().decode("utf-8", errors="replace").strip()
282282
except Exception:
283-
pass
283+
error_body = ""
284284
msg = "DEBUG: LAS POST exception: {0}".format(str(e))
285285
if error_body:
286286
msg += " response_body={0}".format(error_body)

0 commit comments

Comments
 (0)