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