Skip to content

Option to raise exception when unknown parameter passed. #818

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

Open
ashesh-0 opened this issue May 6, 2025 · 0 comments
Open

Option to raise exception when unknown parameter passed. #818

ashesh-0 opened this issue May 6, 2025 · 0 comments

Comments

@ashesh-0
Copy link

ashesh-0 commented May 6, 2025

🚀 Feature

Motivation

I'm using papermill to run multiple notebooks. I have a generic .py script with which I pass in the notebook path and the parameter changes which I wish to make.
However, in doing so, sometimes, I inadvertently pass parameters not meant for the notebook. I think it would be nice if there was an option to raise an exception if an unknown parameter was passed.
I did not spend too much time looking into the code, but I think one just needs to change

logger.warning(f"Passed unknown parameter: {p}")

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

No branches or pull requests

1 participant