Browse files

Fix typo

  • Loading branch information...
1 parent c61bfff commit a66742261a5287e8a210b55ee5b7eaaab424ad87 @oldpatricka oldpatricka committed Sep 19, 2012
Showing with 10 additions and 6 deletions.
  1. +10 −6 pidantic/pyon/pyon.py
View
16 pidantic/pyon/pyon.py
@@ -102,12 +102,16 @@ def run_process(self, process_object):
process_object.module = module
self._pyon_db.db_commit()
- pyon_id = self._container.spawn_process(name=process_object.pyon_name,
- module=process_object.module, cls=process_object.cls,
- config=config)
- process_object.pyon_process_id = pyon_id
- self._pyon_db.db_commit()
- return pyon_id
+ try:
+ pyon_id = self._container.spawn_process(name=process_object.pyon_name,
+ module=process_object.module, cls=process_object.cls,
+ config=config)
+ process_object.pyon_process_id = pyon_id
+ self._pyon_db.db_commit()
+ return pyon_id
+ except:
+ self._log.exception("Problem starting pyon process %s" % process_object.pyon_name)
+ return None
def download_module(self, module_uri):
try:

0 comments on commit a667422

Please sign in to comment.