summaryrefslogtreecommitdiff
path: root/test/test.py
diff options
context:
space:
mode:
authorAdam Hupp <adam@hupp.org>2021-09-02 15:19:16 -0700
committerAdam Hupp <adam@hupp.org>2021-09-02 15:19:16 -0700
commit73bcc7482bf3e6d1f6a74a91bf9689b289a88910 (patch)
treedab68fcc3ada543581e44dd2a76b99ab9db3aabf /test/test.py
parent5fa9055bdc4159ebab0699ae0429de29ae171267 (diff)
downloadpython-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/test.py')
0 files changed, 0 insertions, 0 deletions