dattaremiliano / pyafipws

Automatically exported from code.google.com/p/pyafipws
0 stars 0 forks source link

Cuando no existe el directorio cache, no se intenta crearlo y falla al tratar de guardar en cache #37

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Eliminar la carpeta cache o cambiarle el nombre
2. Llamar WSAA.CallWSAA
3. IOError: [Errno 2] No such file or directory: 
'C:\\pyafip2\\cache\\0fe80af168c09c4fe65160f2643ee0e1.xml'

What is the expected output? 
Que no haya error

What do you see instead?
Un error :P

Please use labels and text to provide additional information.

Una solución sería agregar

            try:
                os.makedirs(cache)
            except OSError:
                pass

justo después de la línea 144 de wsaa.py

Original issue reported on code.google.com by gerardoa...@gmail.com on 26 Mar 2011 at 10:46

GoogleCodeExporter commented 8 years ago

Original comment by gerardoa...@gmail.com on 28 Mar 2011 at 7:04

GoogleCodeExporter commented 8 years ago

Original comment by gerardoa...@gmail.com on 23 Apr 2011 at 5:33