aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOlivier Tilloy <olivier@tilloy.net>2007-03-15 22:40:59 +0100
committerOlivier Tilloy <olivier@tilloy.net>2007-03-15 22:40:59 +0100
commitc9f24f0d2755199345f448b9d4ebbaa436788d0d (patch)
tree3f5d35914228482b7de65ecbcd0f6f0e84ba3307
parented9dfe005d15ff7c7adfff78dec01b9e36affc9a (diff)
downloadpyexiv2-c9f24f0d2755199345f448b9d4ebbaa436788d0d.tar.gz
Changed the Python exception type an Exiv2::Error(KEY_NOT_FOUND, ...) is converted to (now a KeyError) for consistency with Python conventions.
-rw-r--r--src/libpyexiv2.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libpyexiv2.cpp b/src/libpyexiv2.cpp
index 0d94e68..bba5ef9 100644
--- a/src/libpyexiv2.cpp
+++ b/src/libpyexiv2.cpp
@@ -450,7 +450,7 @@ namespace LibPyExiv2
PyErr_SetString(PyExc_KeyError, "Tag is not repeatable");
break;
case KEY_NOT_FOUND:
- PyErr_SetString(PyExc_ValueError, "Tag not set");
+ PyErr_SetString(PyExc_KeyError, "Tag not set");
break;
case THUMB_ACCESS:
PyErr_SetString(PyExc_IOError, "Cannot access image thumbnail");