The name of yaml exceptions is more consistent between Py2->3
This commit is contained in:
parent
94a923ae91
commit
9801d22629
@ -73,9 +73,9 @@ class FakeStack(BaseModel):
|
||||
|
||||
def _parse_template(self):
|
||||
try:
|
||||
self.template_dict = json.loads(self.template)
|
||||
except json.JSONDecodeError:
|
||||
self.template_dict = yaml.load(self.template)
|
||||
except yaml.parser.ParserError:
|
||||
self.template_dict = json.loads(self.template)
|
||||
|
||||
@property
|
||||
def stack_parameters(self):
|
||||
|
Loading…
Reference in New Issue
Block a user