Skip to content

Commit 70d8dce

Browse files
committed
Removed redundant exceptions in cert_info module
1 parent e25fe8f commit 70d8dce

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

plugins/modules/cert_info.py

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -49,13 +49,8 @@ def run_module():
4949
if module.check_mode:
5050
module.exit_json(**result)
5151

52-
try:
53-
cert_info = AnalyzeCertificate(module, result)
54-
result = cert_info.return_result()
55-
except ValueError as e:
56-
module.fail_json(msg='ValueError: %s' % to_native(e))
57-
except Exception as e:
58-
module.fail_json(msg='Exception: %s: %s' % (to_native(type(e)), to_native(e)))
52+
cert_info = AnalyzeCertificate(module, result)
53+
result = cert_info.return_result()
5954

6055
module.exit_json(**result)
6156

0 commit comments

Comments
 (0)