diff --git a/kabot/kabot/kabot.py b/kabot/kabot/kabot.py index 0ba0ec5..caf74cf 100644 --- a/kabot/kabot/kabot.py +++ b/kabot/kabot/kabot.py @@ -550,6 +550,9 @@ def main(): ) args = parser.parse_args() config = configparser.ConfigParser() + if not os.path.exists(args.config): + logger.critical('config file not found') + exit(1) config.read(args.config) audio_path = config['DEFAULT']['audio_path'] token = config['discord']['token']