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

core: rich: Catch ValueError on non-numeric priority values #658

Merged
merged 1 commit into from Jun 29, 2020

Conversation

n0-1
Copy link

@n0-1 n0-1 commented Jun 25, 2020

Be a bit more user-friendly by printing:

| Error: INVALID_RULE: invalid 'priority' attribute value 'ab'.

instead of Python's default, which is:

| Error: invalid literal for int() with base 10: 'ab'

Copy link
Collaborator

@erig0 erig0 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Otherwise looks good! Thanks!

edit: can you also fix the commit title to follow Conventional Commits?

])
FWD_RELOAD

FWD_END_TEST([ignore])
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I forgot that this would work to ignore the errors. Thanks for reminding me. :)

src/tests/regression/rhbz1689429.at Show resolved Hide resolved
Be a bit more user-friendly by printing:

| Error: INVALID_RULE: invalid 'priority' attribute value 'ab'.

instead of Python's default, which is:

| Error: invalid literal for int() with base 10: 'ab'

Fixes: rhbz 1689429
@erig0 erig0 merged commit 3a0e79b into firewalld:master Jun 29, 2020
@erig0
Copy link
Collaborator

erig0 commented Jun 29, 2020

merged. Thanks Phil!

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.

None yet

3 participants