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

Unified Diff: scm.py

Issue 391072: Fix 2 recently introduced errors. (Closed)
Patch Set: Created 11 years, 1 month 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 | trychange.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: scm.py
diff --git a/scm.py b/scm.py
index c47afaa3fa8b7e08375a274ce45974f20f4676bd..9c12ba83616bd60a710461920eac057b327d5be9 100644
--- a/scm.py
+++ b/scm.py
@@ -363,7 +363,8 @@ class SVN(object):
empty string is also returned.
"""
output = SVN.Run(["propget", property_name, file], None)
- if (output.startswith("svn: ") and
+ if (output and
+ output.startswith("svn: ") and
output.endswith("is not under version control")):
return ""
else:
« no previous file with comments | « no previous file | trychange.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698