Skip to content

Commit

Permalink
check before removing (obsolete?) books param from dict
Browse files Browse the repository at this point in the history
  • Loading branch information
Paul Rubin committed Aug 28, 2009
1 parent b7a2675 commit 474e0b1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion openlibrary/plugins/search/code.py
Expand Up @@ -477,7 +477,8 @@ def _lookup_1(self, i, query, offset, rows):
ak = web.ctx.site.get(a["key"])
if ak:
akd = ak.dict()
del akd['books']
if 'books' in akd:
del akd['books']
a["expanded"] = akd

dval["expanded_result"] = eresult
Expand Down

0 comments on commit 474e0b1

Please sign in to comment.