-
Notifications
You must be signed in to change notification settings - Fork 22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Polyfile crashes with NotImplementedError #3374
Comments
Do you get this error when you run PolyFile from the command line, or only when you try and invoke it programmatically? |
I have only attempted to run it programmatically; this is also my use case. |
This is related to an unimplemented feature of libmagic that PolyFile has not yet implemented. PolyFile internally circumvents this by disabling the one test related to it, but if you access the MagicMatcher via the API then it does not disable the test. We have started implementing this feature and it will be included in the next release. In the mean time, you can circumvent it using this workaround: Line 56 in 1718dbb
|
I am running PolyFile version 0.4.2 on Python 3.9.7 on Windows. I get unexpected exceptions of type
NotImplementedError
. Consider the following test:In my setup, this crashes with the following exception:
From my limited understanding, I would expect that this exception should not be propagated to me; instead, I would expect that when a test raises an exception, it is silently discarded as having produced no match.
The text was updated successfully, but these errors were encountered: