Commit ef1f90c4 authored by Vincent Pelletier's avatar Vincent Pelletier

When search_key is None, result must be set to None. Fixes an UnboundLocalError when it happens.

git-svn-id: 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 877e5925
......@@ -1956,6 +1956,7 @@ class Catalog(Folder,
if search_key is None:
# Unknown, skip loudly
LOG('SQLCatalog', WARNING, 'Unknown column %r, skipped.' % (key, ))
result = None
if related_key_definition is None:
build_key = search_key
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment