88import json
99import sys
1010
11- CONFIG_PATH = '.. /cfg/config.cfg'
11+ CONFIG_PATH = './cfg/config.cfg'
1212
1313try :
1414 with open (CONFIG_PATH ) as f :
@@ -35,7 +35,7 @@ def firebase_admin_auth():
3535 except :
3636 # Default Configuration
3737 print ('could not get firebase informtaion from config file' )
38- sys .exit ()
38+ sys .exit (1 )
3939
4040 # adapt this to your firebase setting
4141 config = {
@@ -59,8 +59,8 @@ def dev_firebase_admin_auth():
5959 service_account = CONFIG ['dev_firebase' ]['service_account' ]
6060 except :
6161 # Default Configuration
62- print ('could not get firebase dev information from config file' )
63- sys .exit ()
62+ print ('Could not get firebase dev information from config file. ' )
63+ sys .exit (1 )
6464
6565 # adapt this to your firebase setting
6666 config = {
@@ -83,7 +83,7 @@ def get_api_key(tileserver):
8383 try :
8484 return CONFIG ['imagery' ][tileserver ]
8585 except KeyError :
86- print ("Couldn't find the API key for imagery tileserver {} in {}" .format (tileserver , CONFIG_PATH ))
86+ print ('Could not find the API key for imagery tileserver {} in {}.' .format (tileserver , CONFIG_PATH ))
8787 raise
8888
8989
@@ -109,8 +109,8 @@ def __init__(self):
109109 host = CONFIG ['mysql' ]['host' ]
110110 # print('use configuration for mysql as provided by config.json')
111111 except :
112- print ('we could not load mysql info the config file' )
113- sys .exit ()
112+ print ('Could not load mysql info from config file. ' )
113+ sys .exit (1 )
114114
115115 self ._db_connection = pymysql .connect (
116116 database = dbname ,
@@ -155,7 +155,7 @@ def __init__(self):
155155 except :
156156 # Default configuration
157157 print ('we could not load mysql dev info from the config file' )
158- sys .exit ()
158+ sys .exit (1 )
159159
160160 self ._db_connection = pymysql .connect (
161161 database = dbname ,
0 commit comments