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

Traceback when listing packages with empty fields #505

Merged
merged 1 commit into from
Dec 13, 2024

Conversation

citrus-it
Copy link
Member

Traceback (most recent call last):
  File "/usr/bin/pkg", line 7797, in handle_errors
    __ret = func(*args, **kwargs)
            ^^^^^^^^^^^^^^^^^^^^^
  File "/usr/bin/pkg", line 7782, in main_func
    return func(op=subcommand, api_inst=api_inst, pargs=pargs, **opts)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/bin/pkg", line 849, in list_inventory
    fmt_str = calc_fmtstr(attrs, data)
              ^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/bin/pkg", line 648, in calc_fmtstr
    if len(entry.get(field)) > widths[i]:
       ^^^^^^^^^^^^^^^^^^^^^
TypeError: object of type 'NoneType' has no len()

@hadfl hadfl merged commit 1cb8ae2 into omniosorg:master Dec 13, 2024
1 check passed
@citrus-it citrus-it deleted the list branch December 27, 2024 22:26
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.

2 participants