mirror of
https://github.com/thegeeklab/ansible-later.git
synced 2024-06-01 08:00:04 +02:00
catch ValueError
This commit is contained in:
parent
c7fc39b367
commit
b3078fc0b8
|
@ -231,8 +231,8 @@ class StandardBase(object, metaclass=StandardExtendedMeta):
|
|||
StandardBase.Error(e.problem_mark.line + 1, f"syntax error: {e.problem}")
|
||||
)
|
||||
candidate.faulty = True
|
||||
except TypeError as e:
|
||||
errors.append(StandardBase.Error(None, e))
|
||||
except (TypeError, ValueError) as e:
|
||||
errors.append(StandardBase.Error(None, f"yamllint error: {e}"))
|
||||
candidate.faulty = True
|
||||
|
||||
return errors
|
||||
|
|
Loading…
Reference in New Issue
Block a user