Mercurial > dandelion
changeset 452:f6ade9b14e12
accept EOFError when trying to read title index in word search
| author | Radomir Dopieralski <moindev@sheep.art.pl> |
|---|---|
| date | Sun, 03 Aug 2008 18:18:45 +0200 |
| parents | 858612e601cb |
| children | a767808a9fbc |
| files | dandelion/word_search.py |
| diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/dandelion/word_search.py Sun Aug 03 18:17:09 2008 +0200 +++ b/dandelion/word_search.py Sun Aug 03 18:18:45 2008 +0200 @@ -95,7 +95,7 @@ try: f = open(filename + ".titles", "rb") self.titles = cPickle.load(f) - except IOError: + except (IOError, EOFError): self.titles = [] def add(self, title, text):
