From: Zack Cerza Date: Thu, 13 Jul 2023 22:58:05 +0000 (-0600) Subject: Ansible._handle_failure: Catch all Exceptions X-Git-Tag: 1.2.0~92^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=8cd332dea63eb0cdd25abfc5799995f19ee5eb2a;p=teuthology.git Ansible._handle_failure: Catch all Exceptions Signed-off-by: Zack Cerza --- 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 @@ class Ansible(Task): 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