def run(): try: check_environment() check() except exceptions.Exception, e: traceback.print_exc(file = open('xia2.error', 'w')) Chatter.write('Status: error "%s"' % str(e))
def run(): if os.path.exists('xia2-working.phil'): sys.argv.append('xia2-working.phil') try: check_environment() except exceptions.Exception, e: traceback.print_exc(file = open('xia2.error', 'w')) Chatter.write('Status: error "%s"' % str(e))
def run(): from libtbx.utils import Sorry if len(sys.argv) < 2 or '-help' in sys.argv or '--help' in sys.argv: help() sys.exit() try: check_environment() except exceptions.Exception, e: traceback.print_exc(file = open('xia2.error', 'w')) Chatter.write('Status: error "%s"' % str(e))