Commit 7ebc2f00 authored by Jeremy Hylton's avatar Jeremy Hylton

Robustification-- catch OSError when tempfile is closed.

parent 65da8605
......@@ -144,7 +144,7 @@ file 0 and file 1.
"""
__version__ = "$Revision: 1.16 $"[11:-2]
__version__ = "$Revision: 1.17 $"[11:-2]
import os, tempfile
from struct import pack, unpack
......@@ -215,7 +215,10 @@ class ClientCache:
self._current=current
def close(self):
self._f[self._current].close()
try:
self._f[self._current].close()
except OSError:
pass
def open(self):
self._acquire()
......
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