coderedcorp / wagtail-seo

Search engine and social media optimization for Wagtail.
Other
66 stars 18 forks source link

Added check for getting site name from empty site object #33

Closed bestasholli closed 2 years ago

bestasholli commented 2 years ago

Created this PR for the opened issue linked below: https://github.com/coderedcorp/wagtail-seo/issues/32#issue-1110574602

Added check at seo_sitename method that returns the site name. In case wagtail-seo can not get the site object, getting site name throws error, instead of returning some empty string as fallback option.