Explorar el Código

Possible fix to silently skipping EIO and the like? #748

Marian Beermann hace 9 años
padre
commit
4bc27690af
Se han modificado 1 ficheros con 1 adiciones y 0 borrados
  1. 1 0
      borg/_chunker.c

+ 1 - 0
borg/_chunker.c

@@ -152,6 +152,7 @@ chunker_fill(Chunker *c)
         }
         else {
             // some error happened
+            PyErr_SetFromErrno(PyExc_OSError);
             return 0;
         }
         length = c->bytes_read - offset;