Skip to content

Instantly share code, notes, and snippets.

@mackstann
Created December 22, 2009 07:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mackstann/261587 to your computer and use it in GitHub Desktop.
Save mackstann/261587 to your computer and use it in GitHub Desktop.
gen = self._conn_request(request_uri, method, body, headers)
for iter in gen:
try:
yield
except Exception, e:
gen.throw(e)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment