From a745942cc36e3aca7e38ced5fa46b60103147fbb Mon Sep 17 00:00:00 2001 From: Ian Schenck Date: Fri, 3 Aug 2007 15:02:49 +0000 Subject: [PATCH] Join should fail nicely now, assuming it has enough memory left over to actually fail nicely. --- tools/new_operations/gops_join.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tools/new_operations/gops_join.py b/tools/new_operations/gops_join.py index 2d79ad0872b..08fb86bb0b6 100644 --- a/tools/new_operations/gops_join.py +++ b/tools/new_operations/gops_join.py @@ -69,6 +69,8 @@ def main(): print >> out_file, outfields except ParseError, exc: print >> sys.stderr, "Invalid file format: ", str( exc ) + except MemoryError: + print >> sys.stderr, "Input datasets were too large to complete the join operation." if g1.skipped > 0: print skipped( g1, filedesc=" of 1st dataset" )