The name of yaml exceptions is more consistent between Py2->3

This commit is contained in:
Jack Danger Canty 2017-05-11 07:15:07 -07:00
parent 94a923ae91
commit 9801d22629

View File

@ -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):