@@ -273,14 +273,14 @@ def get_config():
273273
274274 if not os .path .exists (config_path ):
275275 # config.ini does not exist, you can generate a default one or notify the user to create it
276- input ("config.ini not found. Please create it at:" , config_path )
276+ raise Exception ("config.ini not found. Please create it at:" , config_path )
277277 # Example code to generate a default config.ini, uncomment and modify as needed
278278 # config = configparser.ConfigParser()
279279 # config['DEFAULT'] = {'Setting1': 'Value1', 'Setting2': 'Value2'}
280280 # with open(config_path, 'w') as configfile:
281281 # config.write(configfile)
282282 # print("A default config.ini has been created at:", config_path)
283- return None # or return a default config object
283+ # or return a default config object
284284
285285 # If config.ini exists, read it
286286 config = configparser .ConfigParser ()
@@ -291,8 +291,7 @@ def get_custom_fields():
291291 custom_fields_path = resolve_path ('custom_fields.json' )
292292
293293 if not os .path .exists (custom_fields_path ):
294- input ("custom_fields.json not found. Please create it at:" , custom_fields_path )
295- return None
294+ raise Exception ("custom_fields.json not found. Please create it at:" , custom_fields_path )
296295
297296 with open (custom_fields_path , 'r' ) as file :
298297 return json .load (file )
0 commit comments