Skip to content

Commit

Permalink
Update src/plone/volto/patches.py
Browse files Browse the repository at this point in the history
Co-authored-by: David Glick <[email protected]>
  • Loading branch information
sneridagh and davisagli authored Jan 29, 2024
1 parent 2070b78 commit ffa2651
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/plone/volto/patches.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ def construct_url(self, randomstring):

registry = getUtility(IRegistry)
settings = registry.forInterface(IVoltoSettings, prefix="volto", check=False)
settings_frontend_domain = os.environ["VOLTO_FRONTEND_DOMAIN"] or getattr(
settings_frontend_domain = os.environ.get("VOLTO_FRONTEND_DOMAIN") or getattr(
settings, "frontend_domain", None
)
if settings_frontend_domain:
Expand Down

0 comments on commit ffa2651

Please sign in to comment.