diff options
author | Teemu Suo-Anttila <teemusa@vaadin.com> | 2015-12-02 12:50:06 +0200 |
---|---|---|
committer | Teemu Suo-Anttila <teemusa@vaadin.com> | 2015-12-02 12:50:06 +0200 |
commit | 112340bd60829d17fe0c9c077eb12d9c01899a31 (patch) | |
tree | ec5fb4de291ab011376cfa2570e0a4379882fcaa | |
parent | 099261a1b6cef7910705a6c890c1135c3028a170 (diff) | |
download | vaadin-framework-112340bd60829d17fe0c9c077eb12d9c01899a31.tar.gz vaadin-framework-112340bd60829d17fe0c9c077eb12d9c01899a31.zip |
Improve BuildDemos exception handling
Change-Id: Iee29e3686a60c889e6bffa7ffe0a447f14d7afa2
-rw-r--r-- | scripts/BuildDemos.py | 9 |
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) |