Skip to content

Instantly share code, notes, and snippets.

@acuros
Created September 22, 2013 14:26
Show Gist options
  • Save acuros/6660400 to your computer and use it in GitHub Desktop.
Save acuros/6660400 to your computer and use it in GitHub Desktop.
def _update_result(self, item):
try:
response = json.loads(item)
except ValueError:
self.result['no_json_response'] = self.result.get('no_json_response') + item
else:
self.result.update(response)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment