[library-web] do not fail trying to remove files



commit bfaa66ec7ee51b32134424dd93ec91b62506342a
Author: FrÃdÃric PÃters <fpeters 0d be>
Date:   Wed Sep 26 14:49:27 2012 +0200

    do not fail trying to remove files

 src/modtypes/mallard.py |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/src/modtypes/mallard.py b/src/modtypes/mallard.py
index 99b64a7..931e27f 100644
--- a/src/modtypes/mallard.py
+++ b/src/modtypes/mallard.py
@@ -383,7 +383,10 @@ class MallardModule(DocModule):
 
             # remove static files that were copied to the lang directory
             for filename in copied_files:
-                os.unlink(filename)
+                try:
+                    os.unlink(filename)
+                except OSError:
+                    pass
 
             if doc_figures:
                 # and copy images/



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]