From: Ed Page Date: Thu, 16 Apr 2009 13:44:16 +0000 (-0500) Subject: I think its best not to pass on exceptions, besides it improves the readability of... X-Git-Url: https://vcs.maemo.org/git/?p=doneit;a=commitdiff_plain;h=f3a511ba8b6539a115f31c12b4e03964ce7990fb I think its best not to pass on exceptions, besides it improves the readability of them --- diff --git a/src/coroutines.py b/src/coroutines.py index 320eb10..9ab75bf 100755 --- a/src/coroutines.py +++ b/src/coroutines.py @@ -148,12 +148,9 @@ def comap(function, target): >>> # cm.close() """ while True: - try: - item = yield - mappedItem = function(item) - target.send(mappedItem) - except StandardError, e: - target.throw(e.__class__, e.message) + item = yield + mappedItem = function(item) + target.send(mappedItem) def func_sink(function):