@@ 301,7 301,18 @@ def init(
dbg("Reading User Config: " + user_config_file)
fidi_config = user_config_file
- c = yaml.load(config_to_string(fidi_config), Loader=yaml.BaseLoader)
+ if fidi_config:
+ c = yaml.load(config_to_string(fidi_config), Loader=yaml.BaseLoader)
+ else:
+ err("")
+ err("No valid configuration file was provided!")
+ err("Please see this URL for how to get setup with a config file:")
+ err("")
+ err("https://man.sr.ht/~hristoast/mousikofidi/setup.md#configuring-mousikfdi")
+ err("")
+ err("MousikóFídi will not work without a valid config file!")
+ err("")
+ return abort(500)
# TODO: A more DRY way to handle checking for configs
try: