Commit f6a76bd8 authored by Jeremy Hylton's avatar Jeremy Hylton

Do not store traceback in local variable.

Prevents memory leak for each _restore_index() call.
parent 613ae264
......@@ -186,7 +186,7 @@
# may have a back pointer to a version record or to a non-version
# record.
#
__version__='$Revision: 1.71 $'[11:-2]
__version__='$Revision: 1.72 $'[11:-2]
import struct, time, os, bpthread, string, base64, sys
from struct import pack, unpack
......@@ -439,7 +439,7 @@ class FileStorage(BaseStorage.BaseStorage,
try:
info=p.load()
except:
exc, err, tb = sys.exc_info()
exc, err = sys.exc_info()[:2]
warn("Failed to load database index: %s: %s" %
(exc, err))
return None
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment