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

Unified Diff: checkout.py

Issue 11232069: patch can be None in the exception, causing a secondary exception. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/depot_tools
Patch Set: Created 8 years, 2 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: checkout.py
diff --git a/checkout.py b/checkout.py
index 62f04d42baee6356c745547c030feb3d956f80a3..a303b338aca4d2b35ff0caea8c81f3536b8c39dd 100644
--- a/checkout.py
+++ b/checkout.py
@@ -76,7 +76,8 @@ class PatchApplicationFailed(Exception):
out.append('Failed to apply patch for %s:' % self.filename)
if self.status:
out.append(self.status)
- out.append('Patch: %s' % self.patch.dump())
+ if self.patch:
+ out.append('Patch: %s' % self.patch.dump())
return '\n'.join(out)
« 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