Explorar el Código

Add zlib.error as a potential gzip test result.

master
Alard hace 11 años
padre
commit
e61ef326a7
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. +1
    -1
      megawarc

+ 1
- 1
megawarc Ver fichero

@@ -143,7 +143,7 @@ def test_gz(filename, offset, size, verbose=False):
buf = gz.read(4096)
if len(buf) == 0:
break
except (IOError, ValueError) as e:
except (IOError, ValueError, zlib.error) as e:
if verbose:
print >>sys.stderr, e
return False


Cargando…
Cancelar
Guardar