[minor] website-fix
This commit is contained in:
parent
edf361b132
commit
f9bcb11d35
1 changed files with 3 additions and 0 deletions
|
|
@ -17,6 +17,9 @@ class WebsiteGenerator(Document):
|
|||
|
||||
def get_website_properties(self, key=None, default=None):
|
||||
out = getattr(self, '_website', None) or getattr(self, 'website', None) or {}
|
||||
if not isinstance(out, dict):
|
||||
# website may be a property too, so ignore
|
||||
out = {}
|
||||
if key:
|
||||
return out.get(key, default)
|
||||
else:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue