diff options
author | Olivier Tilloy <olivier@tilloy.net> | 2007-03-30 22:38:08 +0200 |
---|---|---|
committer | Olivier Tilloy <olivier@tilloy.net> | 2007-03-30 22:38:08 +0200 |
commit | 5b9561b2f53982f76990ce63d5f44271ebc3923e (patch) | |
tree | ee3e4d7cd6d1f0f3dfcc3c74ee510afd200885ab /src/libpyexiv2.cpp | |
parent | 59de8016bf0ccd69f7eb4059b052acead79eb3f2 (diff) | |
download | pyexiv2-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.cpp | 2 |
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: |