Skip to content

Instantly share code, notes, and snippets.

@jasonbaker
Created October 6, 2011 23:43
Show Gist options
  • Save jasonbaker/1269031 to your computer and use it in GitHub Desktop.
Save jasonbaker/1269031 to your computer and use it in GitHub Desktop.
parentHash = unicode(hash(richResult))
# If for whatever reason we don't have a proper parentHash, we'll
# try to salvage the original (raw) item and bail out
if not parentHash:
logResult(item.rawItem)
yield item.rawItem
return
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment