Skip to content

Commit

Permalink
Log a kernel start exception
Browse files Browse the repository at this point in the history
  • Loading branch information
Jason Grout committed Oct 4, 2012
1 parent d40781d commit ed2a4a8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion untrusted_kernel_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,12 @@ def start_kernel(self, resource_limits=None):
try:
x = self.fkm.start_kernel(resource_limits=resource_limits)
break
except KernelError:
except KernelError as e:
retry -=1
logging.debug("kernel error--trying again %s"%retry)
if not retry:
logging.debug("kernel error--giving up %s"%retry)
logging.exception(e)
raise
self._kernels.add(x["kernel_id"])
return x
Expand Down

0 comments on commit ed2a4a8

Please sign in to comment.