Merge pull request #137 from caujka/master

Handling for EOF reading error in gzipped content
This commit is contained in:
Aldo Cortesi 2013-07-01 17:37:15 -07:00
commit c4d03d8b85
1 changed files with 1 additions and 1 deletions

View File

@ -54,7 +54,7 @@ def decode_gzip(content):
gfile = gzip.GzipFile(fileobj=cStringIO.StringIO(content))
try:
return gfile.read()
except IOError:
except (IOError, EOFError):
return None
def encode_gzip(content):