aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--markdown/odict.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/markdown/odict.py b/markdown/odict.py
index 4de4424..d77d701 100644
--- a/markdown/odict.py
+++ b/markdown/odict.py
@@ -120,8 +120,7 @@ class OrderedDict(dict):
try:
return self.keyOrder.index(key)
except ValueError, e:
- raise KeyError("Element '%s' was not found in OrderedDict" % key)
-
+ raise ValueError("Element '%s' was not found in OrderedDict" % key)
def index_for_location(self, location):
""" Return index or None for a given location. """