fix: suppress xlsxwriter URL warning when writing cells DEV-2020 - #346
Merged
Conversation
noliveleger
force-pushed
the
dev-2020-suppress-xlsxwriter-url-warning
branch
from
June 5, 2026 19:55
acaa269 to
6598c57
Compare
Contributor
Author
|
@greptileai review |
rgraber
self-requested a review
June 17, 2026 12:50
noliveleger
force-pushed
the
dev-2020-suppress-xlsxwriter-url-warning
branch
from
June 17, 2026 13:02
f7521ee to
6b6b60d
Compare
noliveleger
force-pushed
the
dev-2020-suppress-xlsxwriter-url-warning
branch
from
June 17, 2026 13:16
def1423 to
7a9c528
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
xlsxwriter emitted a
UserWarningwhen writing a cell containing a URL that exceeds its internal limits (too long or too many URLs in the sheet), even when the code already handles those cases gracefully by falling back to plain-string writing.Notes
warnings.catch_warnings()+filterwarnings('ignore', message='Ignoring URL', ...)wraps eachsheet_.write()call inExport._append_row_to_sheetwrite_string()on non-zero return code is unchangedtest_xlsx_too_many_urlsnow assert the warning is not raised (viafilterwarnings('error', ...))Preview steps
pytest tests/test_exports.py::TestFormPackExport::test_xlsx_too_many_urls -m slow— should pass with no warnings