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 5 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

@astanin
Copy link
Owner

astanin commented Sep 26, 2024

It should probably use missingval value for consistency not an empty string.

@astanin astanin added the incomplete This PR requires some further changes or modifications before it can be merged. label Sep 27, 2024
@gschizas
Copy link
Author

It should probably use missingval value for consistency not an empty string.

I've updated the pull request

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
incomplete This PR requires some further changes or modifications before it can be merged.
Projects
None yet
2 participants