raise only if the previous call did not had a EACCES error

Signed-off-by: Alfredo Deza <alfredo@deza.pe>