Commit 18a59e0d authored by sim's avatar sim

[FIX] Fix UnboundLocalError in ModelCache.__missing__

parent 281b52e7
......@@ -29,6 +29,7 @@ class ModelCache(dict):
if formatted_key in self:
self[key] = self[formatted_key]
element = self[key]
element = session.query(self._model).filter(or_(*conditions)).first()
if element is None:
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