Skip to content

Commit

Permalink
Removed unnecessary 'except: raise' in django.db.models.query.lookup_…
Browse files Browse the repository at this point in the history
…inner

git-svn-id: http://code.djangoproject.com/svn/django/trunk@3324 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information
adrianholovaty committed Jul 11, 2006
1 parent a17a9d1 commit 9a0e56d
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions django/db/models/query.py
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -831,8 +831,6 @@ def lookup_inner(path, lookup_type, value, opts, table, column):


except FieldFound: # Match found, loop has been shortcut. except FieldFound: # Match found, loop has been shortcut.
pass pass
except: # Any other exception; rethrow
raise
else: # No match found. else: # No match found.
raise TypeError, "Cannot resolve keyword '%s' into field" % name raise TypeError, "Cannot resolve keyword '%s' into field" % name


Expand Down

0 comments on commit 9a0e56d

Please sign in to comment.