writing iptc field raises exception oldValues has no len() and/or newValues not iterable
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
pyexiv2 |
Fix Released
|
High
|
Olivier Tilloy |
Bug Description
steps to reproduce:
>>> import pyexiv2
>>> import datetime
>>> image = pyexiv2.
>>> image.readMetad
>>> d = datetime.date(2009, 03, 16)
>>> image['
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/lib/
for i in xrange(
TypeError: object of type 'datetime.date' has no len()
>>>
>>> # deleting the field first, is a possible workaround
... # but triggers another bug
... del(image[
Traceback (most recent call last):
File "<stdin>", line 3, in <module>
File "/usr/lib/
for i in xrange(
TypeError: object of type 'datetime.date' has no len()
>>> image['
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/lib/
self.
TypeError: 'datetime.date' object is not iterable
Patch against 0.1.2 attached.
Feel free to modify it, it's rather crude.
Changed in pyexiv2: | |
assignee: | nobody → Olivier Tilloy (osomon) |
Changed in pyexiv2: | |
status: | Fix Committed → Fix Released |
oops, was too fast. The del(...) already produces an exception.
The new patch fixes that also.