Skip to content

Commit

Permalink
Fix parsing "none" for --slice
Browse files Browse the repository at this point in the history
Commit 8d72c4d introduced a regression where the `--slice` CLI argument or other calls to the None parser with a custom set of allowed "None" values could be misinterpreted, leading to an error.
  • Loading branch information
yoda-vid committed Oct 25, 2024
1 parent ca78738 commit a316787
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion magmap/io/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ def _parse_none(
"""
if not libmag.is_seq(none):
none = tuple(none)
none = [none]
if arg.lower() in none:
return None
return arg if fn is None else fn(arg)
Expand Down

0 comments on commit a316787

Please sign in to comment.