Morpheus / Mbed OS mbed-Client-Morpheus-hg

Dependencies:   mbed-os

Revision:
16:b54f256e339e
Parent:
15:a6b1f4e65bf4
Child:
17:1e487c450f06
--- a/neo.py	Wed Mar 30 02:05:41 2016 -0500
+++ b/neo.py	Wed Mar 30 02:10:58 2016 -0500
@@ -195,10 +195,14 @@
     repo = Repo(library)
 
     popen([cwd.type, 'rm', '-f', repo.lib])
-    if cwd.type == 'hg':
-        os.remove(repo.lib)
 
-    shutil.rmtree(repo.path)
+    try:
+        if cwd.type == 'hg':
+            os.remove(repo.lib)
+
+        shutil.rmtree(repo.path)
+    except OSError:
+        pass
 
 # Publish command
 @subcommand('publish',