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

Gracefully handle a value that is not a string #410

Merged
merged 1 commit into from
Jul 31, 2024

Conversation

bsquizz
Copy link
Collaborator

@bsquizz bsquizz commented Jul 31, 2024

Fixes:

  File "/iqe_venv/lib64/python3.11/site-packages/bonfire/processor.py", line 86, in _remove_untrusted_configs
    if not _is_trusted_config(data, regex, params, path):
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/iqe_venv/lib64/python3.11/site-packages/bonfire/processor.py", line 50, in _is_trusted_config
    match = re.match(regex, value)
            ^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib64/python3.11/re/__init__.py", line 166, in match
    return _compile(pattern, flags).match(string)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: expected string or bytes-like object, got 'int'

@bsquizz bsquizz merged commit 2d5c3e2 into master Jul 31, 2024
8 checks 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.

1 participant