From 2a60ba61c58deecdd42e30368b3a37b10b418c89 Mon Sep 17 00:00:00 2001 From: Jeremy Fincher Date: Thu, 15 Jan 2004 11:54:41 +0000 Subject: [PATCH] Clear exception info to make sure things get collected, just in case. --- src/world.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/world.py b/src/world.py index bf2f1954f..f49c727e3 100644 --- a/src/world.py +++ b/src/world.py @@ -39,6 +39,7 @@ import fix import gc import os +import sys import sre import time import types @@ -74,6 +75,7 @@ tempvars = {} # A storage place for temporary variables that need to be def upkeep(): # Function to be run on occasion to do upkeep stuff. """Does upkeep (like flushing, garbage collection, etc.)""" + sys.exc_clear() # Just in case, let's clear the exception info. collected = gc.collect() if os.name == 'nt': try: