Skip to content
Snippets Groups Projects
Commit 53c3bace authored by Thomas Kluyver's avatar Thomas Kluyver
Browse files

Use attribute access for args object

parent e10f8c9c
No related branches found
No related tags found
1 merge request!575Refactor parsing arguments and loading main notebook
......@@ -414,7 +414,8 @@ def parse_argv_and_load_nb(argv) -> Tuple[Dict, NBDetails]:
not_reproducible_args = sorted(
('--' + x.replace('_', '-')
for x in ['skip_env_freeze']
if args[x]))
if getattr(args, x))
)
# If any of these arguments are set, present a warning.
if not_reproducible_args:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment