Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: mbed-os
Diff: neo.py
- 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',