summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPrimhill Computers <remi.chateauneu@primhillcomputers.com>2021-03-06 16:49:41 +0000
committerPrimhill Computers <remi.chateauneu@primhillcomputers.com>2021-03-06 16:49:41 +0000
commit53164b2168e950364ee704c1ace9bb6cfd7817f5 (patch)
tree0cc6b4fd9714a81a1f09c445a396b0874ecb72d0
parenteb5e025177ad36bd0cd7ac6a794cbc42943826f1 (diff)
downloadrdflib-53164b2168e950364ee704c1ace9bb6cfd7817f5.tar.gz
KeyError instead of IndexError.
-rw-r--r--rdflib/plugins/stores/memory.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/rdflib/plugins/stores/memory.py b/rdflib/plugins/stores/memory.py
index 404edfeb..8bf40a21 100644
--- a/rdflib/plugins/stores/memory.py
+++ b/rdflib/plugins/stores/memory.py
@@ -446,7 +446,7 @@ class Memory(Store):
# we know the triple exists somewhere in the store
try:
triple_context = self.__tripleContexts[triple]
- except IndexError:
+ except KeyError:
# triple exists with default ctx info
# start with a copy of the default ctx info
triple_context = self.__tripleContexts[triple] = self.__defaultContexts.copy()