From 8cd332dea63eb0cdd25abfc5799995f19ee5eb2a Mon Sep 17 00:00:00 2001 From: Zack Cerza Date: Thu, 13 Jul 2023 16:58:05 -0600 Subject: [PATCH] Ansible._handle_failure: Catch all Exceptions Signed-off-by: Zack Cerza --- teuthology/task/ansible.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/teuthology/task/ansible.py b/teuthology/task/ansible.py index 1d487ab50..6ccdc7664 100644 --- a/teuthology/task/ansible.py +++ b/teuthology/task/ansible.py @@ -363,7 +363,7 @@ def _handle_failure(self, command, status): try: analyzer = FailureAnalyzer() failures = analyzer.analyze(fail_log) - except yaml.YAMLError as e: + except Exception as e: log.error( "Failed to parse ansible failure log: {0} ({1})".format( self.failure_log.name, e