Skip to content
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

wand.exceptions.WandError gets overwritten #292

Closed
mcirello opened this issue Jun 2, 2016 · 1 comment
Closed

wand.exceptions.WandError gets overwritten #292

mcirello opened this issue Jun 2, 2016 · 1 comment
Labels

Comments

@mcirello
Copy link

mcirello commented Jun 2, 2016

In exceptions.py you have an entry in the domain map:

 ('Wand', 'There was a problem specific to the MagickWand API.', (),
     [370, 470, 770]),

This creates a "WandError" that overwrites the base class WandError. So this doesn't work:

import wand.exceptions

try:
  raise wand.exceptions.CoderError
except wand.exceptions.WandError:
 pass
dahlia added a commit that referenced this issue Jun 3, 2016
@mlissner
Copy link

Just got bit by this too and wasted some time trying to figure out why I couldn't catch an exception.

If the fix is in and we can get the memory fixed in #300, can we do a release?

@dahlia dahlia added the bug label Sep 17, 2016
@dahlia dahlia closed this as completed in b589ec8 Oct 22, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants