diff --git a/bdfr/configuration.py b/bdfr/configuration.py index cfb3242a..0caeacc6 100644 --- a/bdfr/configuration.py +++ b/bdfr/configuration.py @@ -53,7 +53,7 @@ def __init__(self): self.comment_context: bool = False def process_click_arguments(self, context: click.Context): - if context.params['opts'] is not None: + if context.params.get('opts') is not None: with open(context.params['opts']) as f: opts = yaml.load(f, Loader=yaml.FullLoader) for arg_key, val in opts.items():