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

Raise an Error or Warning upon .ask'ing for more points than the generator can reasonably provide #9

Open
jlnav opened this issue Jun 10, 2024 · 0 comments

Comments

@jlnav
Copy link
Contributor

jlnav commented Jun 10, 2024

Possibility 1: Hint to user that they received less points
raise RuntimeWarning("Requested more points than available. Your workflow/allocation may not operate efficiently")

Possibility 2: Crash upon not providing enough points

raise RuntimeError("Requested more points than available. Exiting...")

I'm leaning more towards a Warning.

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