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: NameError in Resource.resource setter #89

Closed
changwoo opened this Issue Jan 27, 2013 · 0 comments

Comments

2 participants
@changwoo

changwoo commented Jan 27, 2013

forwarded from http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=699064

Error handling in Resource.resource setter is slightly broken:

>>> import wand.image
>>> wand.image.Image(width=1, height=1).resource = None
Traceback (most recent call last):
 File "<stdin>", line 1, in <module>
 File "/usr/lib/python2.7/dist-packages/wand/resource.py", line 163, in resource
   raise TypeError(repr(wand) + ' is an invalid resource')
NameError: global name 'wand' is not defined
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment