Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(755)

Unified Diff: tools/get_drt.py

Issue 10222025: Add exception handling in get_drt.py (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/get_drt.py
===================================================================
--- tools/get_drt.py (revision 7023)
+++ tools/get_drt.py (working copy)
@@ -162,6 +162,9 @@
# this does not seem to be a problem for Windows, which does not have a
# built in zip utility. :-/
result, out = execute_command('unzip', temp_zip, '-d', temp_dir)
+ if result != 0:
+ raise Exception('Execution of "unzip %s -d %s" failed: %s' %
+ (temp_zip, temp_dir, str(out)))
unzipped_dir = temp_dir + '/' + os.path.basename(latest)[:-4] #Remove .zip
else:
z = zipfile.ZipFile(temp_zip)
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698