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

Fix column wrapping breaking with None values (fixes #312) #313

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

gschizas
Copy link

@gschizas gschizas commented Feb 27, 2024

When using wrapping (i.e. with maxcolwidths) with a column that contains None values, the process crashes with the error TypeError: NoneType takes no arguments.

To solve that, an extra guard case is added, to return None as an empty string instead.

Includes a test.

Fixes #312

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant