diff --git a/duden/search.py b/duden/search.py index 4ebaa48..49053b4 100644 --- a/duden/search.py +++ b/duden/search.py @@ -52,7 +52,7 @@ def function_wrapper(cache_key, cache=True, **kwargs): try: with gzip.open(full_path, 'rt', encoding='utf8') as f: return f.read() - except (FileNotFoundError, gzip.BadGzipFile, IOError): + except (FileNotFoundError, IOError, EOFError): pass result = func(cache_key, **kwargs)