Log the error also

This commit is contained in:
PCoder 2018-02-22 07:07:26 +01:00
parent d72df9b350
commit 4035ffcfd4

View file

@ -524,7 +524,9 @@ else:
try: try:
configs_dict=json.loads(UNGLEICH_SITE_CONFIGS) configs_dict=json.loads(UNGLEICH_SITE_CONFIGS)
except ValueError as verr: except ValueError as verr:
raise Exception("UNGLEICH_SITE_CONFIGS is not a valid JSON") raise Exception("UNGLEICH_SITE_CONFIGS is not a valid JSON: {}".format(
str(verr)
))
else: else:
MULTISITE_CMS_URLS = { MULTISITE_CMS_URLS = {
k:v['MULTISITE_CMS_URL'] for (k,v) in configs_dict.items() k:v['MULTISITE_CMS_URL'] for (k,v) in configs_dict.items()