diff options
| author | Adam Hupp <adam@hupp.org> | 2021-09-02 15:19:16 -0700 |
|---|---|---|
| committer | Adam Hupp <adam@hupp.org> | 2021-09-02 15:19:16 -0700 |
| commit | 73bcc7482bf3e6d1f6a74a91bf9689b289a88910 (patch) | |
| tree | dab68fcc3ada543581e44dd2a76b99ab9db3aabf /test | |
| parent | 5fa9055bdc4159ebab0699ae0429de29ae171267 (diff) | |
| download | python-magic-73bcc7482bf3e6d1f6a74a91bf9689b289a88910.tar.gz | |
Fix compat mode handling with empty mime string
I can't repro this, but PR #250 suggests that some versions of
libmagic will return a mimetype that doesn't include a charset,
leading to an exception. Fall back to an empty charset in this case.
Diffstat (limited to 'test')
0 files changed, 0 insertions, 0 deletions
