gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[www_shared] branch master updated: use BASEURL only as override


From: gnunet
Subject: [www_shared] branch master updated: use BASEURL only as override
Date: Fri, 07 May 2021 18:06:01 +0200

This is an automated email from the git hooks/post-receive script.

dold pushed a commit to branch master
in repository www_shared.

The following commit(s) were added to refs/heads/master by this push:
     new 32efd06  use BASEURL only as override
32efd06 is described below

commit 32efd06d974ba447d631363a62c4e551c44a17d3
Author: Florian Dold <florian@dold.me>
AuthorDate: Fri May 7 18:03:44 2021 +0200

    use BASEURL only as override
---
 sitegen/site.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sitegen/site.py b/sitegen/site.py
index ecfaf0b..8d88eab 100644
--- a/sitegen/site.py
+++ b/sitegen/site.py
@@ -166,7 +166,7 @@ class SiteGenerator:
         site_configfile = self.root / "www.yml"
         self.config = yaml.load(site_configfile)
         self.baseurl = os.environ.get("BASEURL")
-        if self.baseurl is None:
+        if not self.baseurl:
             self.baseurl = self.config["siteconf"].get("baseurl")
 
     def run_localized(self, locale, tr):

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]