The name of yaml exceptions is more consistent between Py2->3
This commit is contained in:
parent
94a923ae91
commit
9801d22629
1 changed files with 2 additions and 2 deletions
|
|
@ -73,9 +73,9 @@ class FakeStack(BaseModel):
|
||||||
|
|
||||||
def _parse_template(self):
|
def _parse_template(self):
|
||||||
try:
|
try:
|
||||||
self.template_dict = json.loads(self.template)
|
|
||||||
except json.JSONDecodeError:
|
|
||||||
self.template_dict = yaml.load(self.template)
|
self.template_dict = yaml.load(self.template)
|
||||||
|
except yaml.parser.ParserError:
|
||||||
|
self.template_dict = json.loads(self.template)
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def stack_parameters(self):
|
def stack_parameters(self):
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue