Permalink
Browse files

Catch failed association earlier, and log it

  • Loading branch information...
1 parent 8446348 commit 5aa5b054bdc85a8902c492bc798149bb07f12e3f @oldpatricka oldpatricka committed Nov 14, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 ion/agents/cei/high_availability_agent.py
@@ -289,7 +289,7 @@ def _associate_process(self, process):
try:
self.container.resource_registry.create_association(self.service_id,
"hasProcess", process.process_id)
- except AttributeError, Exception:
+ except Exception:
log.exception("Couldn't associate service %s to process %s" % (self.service_id, process.process_id))

0 comments on commit 5aa5b05

Please sign in to comment.