summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorTeemu Suo-Anttila <teemusa@vaadin.com>2015-12-02 12:50:06 +0200
committerTeemu Suo-Anttila <teemusa@vaadin.com>2015-12-02 12:50:06 +0200
commit112340bd60829d17fe0c9c077eb12d9c01899a31 (patch)
treeec5fb4de291ab011376cfa2570e0a4379882fcaa /scripts
parent099261a1b6cef7910705a6c890c1135c3028a170 (diff)
downloadvaadin-framework-112340bd60829d17fe0c9c077eb12d9c01899a31.tar.gz
vaadin-framework-112340bd60829d17fe0c9c077eb12d9c01899a31.zip
Improve BuildDemos exception handling
Change-Id: Iee29e3686a60c889e6bffa7ffe0a447f14d7afa2
Diffstat (limited to 'scripts')
-rw-r--r--scripts/BuildDemos.py9
1 files changed, 8 insertions, 1 deletions
diff --git a/scripts/BuildDemos.py b/scripts/BuildDemos.py
index eef88db78f..8b7aaecf30 100644
--- a/scripts/BuildDemos.py
+++ b/scripts/BuildDemos.py
@@ -88,7 +88,14 @@ if __name__ == "__main__":
print("%s demo validation failed: %s" % (demo, e))
if demo not in ignoredDemos:
demosFailed = True
- removeDir(demo)
+ except EnvironmentError as e:
+ print("%s demo validation failed: %s" % (demo, e))
+ if demo not in ignoredDemos:
+ demosFailed = True
+ try:
+ removeDir(demo)
+ except:
+ pass
print("")
if demosFailed:
sys.exit(1)