diff options
author | Olivier Tilloy <olivier@tilloy.net> | 2009-02-25 19:38:34 +0100 |
---|---|---|
committer | Olivier Tilloy <olivier@tilloy.net> | 2009-02-25 19:38:34 +0100 |
commit | 79af14a148ea4d7b79db5a0f01b4db4ab590d1b1 (patch) | |
tree | bf66ff1b79752bd76f05c8c155eaa67e44d6025d /src | |
parent | 07b77b0d18d9c7c90e89804791d5d78dc13017e6 (diff) | |
download | pyexiv2-79af14a148ea4d7b79db5a0f01b4db4ab590d1b1.tar.gz |
IPTC Undefined to string conversion.
Diffstat (limited to 'src')
-rw-r--r-- | src/pyexiv2.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/pyexiv2.py b/src/pyexiv2.py index 90ef36e..fd91bb4 100644 --- a/src/pyexiv2.py +++ b/src/pyexiv2.py @@ -572,7 +572,11 @@ class IptcTag(MetadataTag): else: raise IptcValueError(value, xtype) - # TODO: other types + elif xtype == 'Undefined': + if type(value) is str: + return value + else: + raise IptcValueError(value, xtype) raise IptcValueError(value, xtype) |