[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] [taler-bank] branch master updated: additional fixes to pro
From: |
gnunet |
Subject: |
[GNUnet-SVN] [taler-bank] branch master updated: additional fixes to provide default config |
Date: |
Wed, 03 May 2017 15:12:47 +0200 |
This is an automated email from the git hooks/post-receive script.
marcello pushed a commit to branch master
in repository bank.
The following commit(s) were added to refs/heads/master by this push:
new ee81eba additional fixes to provide default config
ee81eba is described below
commit ee81ebaf1233a5f82ea22927515b4f56c9ea670d
Author: Marcello Stanisci <address@hidden>
AuthorDate: Wed May 3 15:12:46 2017 +0200
additional fixes to provide default config
---
talerbank/settings_base.py | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/talerbank/settings_base.py b/talerbank/settings_base.py
index 7cb2210..4371861 100644
--- a/talerbank/settings_base.py
+++ b/talerbank/settings_base.py
@@ -92,12 +92,16 @@ DATABASES = {}
# parse a database URL, django can't natively do this!
dbname = tc.value_string("bank", "database", required=True)
+
+if not dbname:
+ raise Exception("'database' option value is missing from config")
+
logger.info("dbname: %s" % dbname)
dbconfig = {}
db_url = urllib.parse.urlparse(dbname)
if db_url.scheme not in ("postgres"):
- raise Exception("Only 'postgres' DB is supported")
+ raise Exception("DB '%s' is not supported" % db_url.scheme)
if db_url.scheme == "postgres":
dbconfig["ENGINE"] = 'django.db.backends.postgresql_psycopg2'
--
To stop receiving notification emails like this one, please contact
address@hidden
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] [taler-bank] branch master updated: additional fixes to provide default config,
gnunet <=