aboutsummaryrefslogtreecommitdiffstats
path: root/src/libpyexiv2.cpp
diff options
context:
space:
mode:
authorOlivier Tilloy <olivier@tilloy.net>2007-03-30 22:38:08 +0200
committerOlivier Tilloy <olivier@tilloy.net>2007-03-30 22:38:08 +0200
commit5b9561b2f53982f76990ce63d5f44271ebc3923e (patch)
treeee3e4d7cd6d1f0f3dfcc3c74ee510afd200885ab /src/libpyexiv2.cpp
parent59de8016bf0ccd69f7eb4059b052acead79eb3f2 (diff)
downloadpyexiv2-5b9561b2f53982f76990ce63d5f44271ebc3923e.tar.gz
Changed the type of exception raised when trying to get a value corresponding to an invalid key (TypeError, to comply with http://docs.python.org/ref/sequence-types.html).
Diffstat (limited to 'src/libpyexiv2.cpp')
-rw-r--r--src/libpyexiv2.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libpyexiv2.cpp b/src/libpyexiv2.cpp
index bba5ef9..729bf02 100644
--- a/src/libpyexiv2.cpp
+++ b/src/libpyexiv2.cpp
@@ -420,7 +420,7 @@ namespace LibPyExiv2
break;
case 6:
case 7:
- PyErr_SetString(PyExc_KeyError, message);
+ PyErr_SetString(PyExc_IndexError, message);
break;
case 4:
case 5: