diff options
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: |