Skip to content

Commit

Permalink
Merge pull request #10 from jeronimoalbi/develop
Browse files Browse the repository at this point in the history
Update to 1.0.0-alpha.8
  • Loading branch information
nullproxy authored Sep 7, 2016
2 parents 564aa68 + 735761b commit 4c551ae
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion katana/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = '1.0.0-alpha.7'
__version__ = '1.0.0-alpha.8'
6 changes: 6 additions & 0 deletions katana/worker.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,9 @@ def process_payload(self, payload):
else:
# Call callback asynchronusly
component = yield from self.callback(component)
except CancelledError:
# Avoid logging task cancel errors by catching it here.
raise
except Exception as exc:
LOG.exception('Component failed')
payload = self.create_error_payload(
Expand Down Expand Up @@ -186,6 +189,9 @@ def process_stream(self, stream):
# Process command and return payload response serialized
try:
payload = yield from self.process_payload(payload)
except CancelledError:
# Avoid logging task cancel errors by catching it here
raise
except HTTPError as err:
payload = ErrorPayload.new(
status=err.status,
Expand Down

0 comments on commit 4c551ae

Please sign in to comment.