Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Searching for a string starting with "or" causes error #1394

Open
garberg opened this issue Aug 12, 2024 · 0 comments
Open

Searching for a string starting with "or" causes error #1394

garberg opened this issue Aug 12, 2024 · 0 comments
Labels

Comments

@garberg
Copy link
Member

garberg commented Aug 12, 2024

Searching for a string which starts with "or" causes pynipap to throw an exception:

$ ./nipap a l orasdf
Searching for prefixes in any VRF...
Traceback (most recent call last):
  File "*snip*./nipap", line 165, in <module>
    cmd.exe(cmd.arg, cmd.exe_options, args)
  File "*snip*/NIPAP/nipap-cli/nipap_cli/nipap_cli.py", line 594, in list_prefix
    res = Prefix.smart_search(search_string, { 'parents_depth': -1,
  File "*snip*/NIPAP/nipap-cli/tracing.py", line 77, in decorated
    return f(*args, **kwargs)
  File "*snip*/NIPAP/nipap-cli/pynipap.py", line 1128, in smart_search
    result['interpretation'] = smart_result['interpretation']
TypeError: 'NoneType' object is not subscriptable
@garberg garberg added the bug label Aug 12, 2024
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant