changeset 11:fc55d95be553

it is list.index, not list.find, silly!
author Jeff Hammel <jhammel@mozilla.com>
date Wed, 05 May 2010 22:37:42 -0700
parents 4c9acbfaa2d2
children 1ae2f98f9675
files taginthemiddle/handlers.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/taginthemiddle/handlers.py	Wed May 05 22:35:09 2010 -0700
+++ b/taginthemiddle/handlers.py	Wed May 05 22:37:42 2010 -0700
@@ -93,7 +93,7 @@
         GenshiHandler.__init__(self, app, request)
         path = request.path_info.split('/')
         try:
-            index = path.find(app.tags_url)
+            index = path.index(app.tags_url)
         except ValueError:
             raise HandlerMatchException
         self.tags = path[index+1:]