Removed unnecessary 'except: raise' in django.db.models.query.lookup_inner
git-svn-id: http://code.djangoproject.com/svn/django/trunk@3324 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
a17a9d1474
commit
9a0e56dbb5
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue