Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

When settings.json is missing, print a reasonable error message #23

Open
njvack opened this issue Nov 30, 2023 · 0 comments
Open

When settings.json is missing, print a reasonable error message #23

njvack opened this issue Nov 30, 2023 · 0 comments

Comments

@njvack
Copy link
Member

njvack commented Nov 30, 2023

Right now it does something like

Traceback (most recent call last):
  File "/study/bam/apps/conda3.9/bin/masterfile", line 8, in <module>
    sys.exit(main())
  File "/study/bam/apps/conda3.9/lib/python3.9/site-packages/masterfile/scripts/masterfile.py", line 101, in main
    return extract.main(args)
  File "/study/bam/apps/conda3.9/lib/python3.9/site-packages/masterfile/scripts/extract.py", line 54, in main
    formatted = format_dataframe_for_masterfile(
  File "/study/bam/apps/conda3.9/lib/python3.9/site-packages/masterfile/scripts/extract.py", line 82, in format_dataframe_for_masterfile
    col_rx = col_match_regex(mf, input_index_col)
  File "/study/bam/apps/conda3.9/lib/python3.9/site-packages/masterfile/scripts/extract.py", line 105, in col_match_regex
    re.escape(index_col), component_col_regex(len(mf.components)))
TypeError: object of type 'NoneType' has no len()

which is not helpful

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant