Skip to content

truncate_corrupted_offsets() crashes due to _xml2dict returning None if <footer><info> is empty - #164

Merged
cbrnr merged 2 commits into
xdf-modules:mainfrom
intheon:fix/footer-info-none
Feb 26, 2026
Merged

truncate_corrupted_offsets() crashes due to _xml2dict returning None if <footer><info> is empty#164
cbrnr merged 2 commits into
xdf-modules:mainfrom
intheon:fix/footer-info-none

Conversation

@insane-dreamer

Copy link
Copy Markdown
Contributor

Optionally, one could change truncate_corrupted_offsets (new with 1.7.x) to handle a None return, but it seems cleaner to fix it upstream.

…t returning None instead of {} if footer[info] is empty
@cbrnr

cbrnr commented Feb 12, 2026

Copy link
Copy Markdown
Contributor

Can you fix the style issues please? Otherwise LGTM!

@insane-dreamer

Copy link
Copy Markdown
Contributor Author

@cbrnr styling fixed!

@cbrnr
cbrnr merged commit 63f2c3d into xdf-modules:main Feb 26, 2026
6 checks passed
@cbrnr

cbrnr commented Feb 26, 2026

Copy link
Copy Markdown
Contributor

Thanks @insane-dreamer!

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