# HG changeset patch # User trinity_ctat # Date 1506453288 14400 # Node ID b6152cc26ffd7b86078e12d6c907681b3e49ca5b # Parent 28f6d3b8e931c4b7e4c7d6c24d394a7c8f6eaa4c Trying to fix a syntax error. diff -r 28f6d3b8e931 -r b6152cc26ffd trinityToolWrapper.py --- a/trinityToolWrapper.py Tue Sep 26 14:54:33 2017 -0400 +++ b/trinityToolWrapper.py Tue Sep 26 15:14:48 2017 -0400 @@ -26,8 +26,11 @@ except: msg = "You must set the environmental variable TRINITY_HOME to the base installation directory of Trinity before running {:s}.".format(sys.argv[0]) sys.stderr.write(msg) - t, v, tb = sys.exc_info() - raise t, v, tb + # t, v, tb = sys.exc_info() + # raise t, v, tb + # For some reason the above was giving a syntax error. + # A simple raise shoudl reraise the existing exception. + raise else: TrinityPath, err_info = pipe1.communicate() # FIX - probably should be checking err_info for errors...