Your message dated Thu, 30 May 2013 15:23:12 +0900
with message-id
<caee2ifxgzhd2cvt4bomhgzad5xumm_9y74bwreck3bc8wwk...@mail.gmail.com>
and subject line Fixed in 0.2.4-1
has caused the Debian Bug report #699064,
regarding wand: NameError in Resource.resource setter
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)
--
699064: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=699064
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Source: wand
Version: 0.2.3-1
Severity: minor
Tags: patch
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
Please see the attached patch for the fix.
--
Jakub Wilk
diff --git a/wand/resource.py b/wand/resource.py
--- a/wand/resource.py
+++ b/wand/resource.py
@@ -159,9 +159,9 @@
def resource(self, resource):
if self.c_is_resource(resource):
self.c_resource = resource
else:
- raise TypeError(repr(wand) + ' is an invalid resource')
+ raise TypeError(repr(resource) + ' is an invalid resource')
increment_refcount()
@resource.deleter
def resource(self):
--- End Message ---
--- Begin Message ---
fixed 699064 0.2.4-1
thanks
The upstream 0.2.4 version fixed it.
--- End Message ---