mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-23 19:19:32 +01:00
Clear exception info to make sure things get collected, just in case.
This commit is contained in:
parent
74961db20e
commit
2a60ba61c5
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user