aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorCédric Bonhomme <cedric@cedricbonhomme.org>2017-04-07 13:24:54 +0200
committerCédric Bonhomme <cedric@cedricbonhomme.org>2017-04-07 13:24:54 +0200
commitf7b6902369c193f0102d1ec46243fea7b5a88174 (patch)
treeafe4271e1eeb192cd2af6782166eb275a4728769 /src
parentMerge branch 'master' into bookmark (diff)
parentPLATFORM_URL is not required. (diff)
downloadnewspipe-f7b6902369c193f0102d1ec46243fea7b5a88174.tar.gz
newspipe-f7b6902369c193f0102d1ec46243fea7b5a88174.tar.bz2
newspipe-f7b6902369c193f0102d1ec46243fea7b5a88174.zip
Merge branch 'master' into bookmark
Diffstat (limited to 'src')
-rw-r--r--src/conf.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/conf.py b/src/conf.py
index 756c1557..9d4c363c 100644
--- a/src/conf.py
+++ b/src/conf.py
@@ -76,7 +76,10 @@ WEBSERVER_SECRET = config.get('webserver', 'secret_key')
CDN_ADDRESS = config.get('cdn', 'cdn_address')
-PLATFORM_URL = config.get('misc', 'platform_url')
+try:
+ PLATFORM_URL = config.get('misc', 'platform_url')
+except:
+ PLATFORM_URL = "https://www.newspipe.org/"
ADMIN_EMAIL = config.get('misc', 'admin_email')
SELF_REGISTRATION = config.getboolean('misc', 'self_registration')
SECURITY_PASSWORD_SALT = config.get('misc', 'security_password_salt')
bgstack15