Skip to content

Fix: validate --custom-tax argument to prevent TypeError - #58

Merged
farchaab merged 1 commit into
metagenlab:mainfrom
teojcryan:fix/custom-tax-bug
Sep 4, 2025
Merged

Fix: validate --custom-tax argument to prevent TypeError#58
farchaab merged 1 commit into
metagenlab:mainfrom
teojcryan:fix/custom-tax-bug

Conversation

@teojcryan

Copy link
Copy Markdown
Contributor

Fixes #57

Description:
This PR resolves a TypeError that occurs when running subcommands like mess download that do not have the --custom-tax option defined.

The conditional check for config.args.custom_tax in functions.smk and setup.smk has been updated from a simple truthiness test to isinstance(config.args.custom_tax, str).

This change ensures the relevant code block is only entered when a user has actually provided a file path (a string). This makes the shared scripts robust and prevents them from failing when included in workflows with different sets of command-line arguments.

@farchaab
farchaab merged commit 3d96a3f into metagenlab:main Sep 4, 2025
1 check passed
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

Successfully merging this pull request may close these issues.

TypeError when running commands without the --custom-tax flag

2 participants