In some cases the return value of yaml.load(description_text)

can be a string containing 'none'.

This will be fetched with isinstance(data, str)
This commit is contained in:
lethliel 2018-11-16 14:30:13 +01:00
parent e3f260fa16
commit dbf4b69a28

View File

@ -698,7 +698,7 @@ class StagingAPI(object):
def load_prj_pseudometa(self, description_text):
try:
data = yaml.load(description_text)
if data is None:
if isinstance(data, str) or data is None:
data = {}
except (TypeError, AttributeError):
data = {}