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

Fixes #10 #12 #11

Merged
merged 3 commits into from
Sep 13, 2021
Merged

Fixes #10 #12 #11

merged 3 commits into from
Sep 13, 2021

Conversation

clarksmr
Copy link
Contributor

@clarksmr clarksmr commented Feb 19, 2021

Fixes #10 and #12

clarksmr and others added 3 commits February 19, 2021 10:10
The recursive call to `apply_rule` had the argument order wrong.
It passed `try_number+1` as the argument for `tries`.
The effect of that was to change `tries` to `1` on the first
recursive call. Thus only one try was ever attempted.

This commit fixes the argument order thus enabling retries.
@clarksmr clarksmr changed the title Check whether any rules exist before accessing Fixes #10 #12 Sep 12, 2021
@tdimiduk
Copy link
Owner

Thanks. Looks good.

@tdimiduk tdimiduk merged commit 28da195 into tdimiduk:master Sep 13, 2021
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.

Empty rule set causes crash
2 participants