Fix global leak of `UnknownFileTypeError`
Merge pull request #5 from domharrington/feature/fix-global-leak

Fix global leak of `UnknownFileTypeError`