ajack 2004/01/19 12:16:59 Modified: python/gump/utils tools.py Log: When two gumps are running in space WS at once (ought lock that out) it highlights a bug in tail. Revision Changes Path 1.10 +2 -1 jakarta-gump/python/gump/utils/tools.py Index: tools.py =================================================================== RCS file: /home/cvs/jakarta-gump/python/gump/utils/tools.py,v retrieving revision 1.9 retrieving revision 1.10 diff -u -r1.9 -r1.10 --- tools.py 9 Jan 2004 19:57:19 -0000 1.9 +++ tools.py 19 Jan 2004 20:16:59 -0000 1.10 @@ -160,6 +160,7 @@ """ Return the last N lines of a file as a list """ taillines=[] try: + o=None try: # Read lines from the file... o=open(file, 'r') @@ -180,7 +181,7 @@ finally: if o: o.close() except Exception, details: - log.error('Failed to tail :' + file + ' : ' + str(details)) + log.error('Failed to tail :' + file + ' : ' + str(details), exc_info=1) return taillines
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]