Skip to content

Commit

Permalink
a better check for opts
Browse files Browse the repository at this point in the history
  • Loading branch information
stared committed Mar 28, 2022
1 parent 9514998 commit 871d975
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bdfr/configuration.py
Original file line number Diff line number Diff line change
Expand Up @@ -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():
Expand Down

0 comments on commit 871d975

Please sign in to comment.