Fix a case branch...rietveldissue is None.
BUG=None
NOTRY=true
Review URL: https://chromiumcodereview.appspot.com/13513002
git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@192050 0039d316-1c4b-4281-b951-d872f2087c98
diff --git a/git_cl.py b/git_cl.py
index f836a05..e20de82 100755
--- a/git_cl.py
+++ b/git_cl.py
@@ -1293,7 +1293,7 @@
if cl.GetIssue():
latest_patchset = cl.GetMostRecentPatchset(cl.GetIssue())
local_patchset = cl.GetPatchset()
- if local_patchset != latest_patchset:
+ if latest_patchset and local_patchset and local_patchset != latest_patchset:
print ('The last upload made from this repository was patchset #%d but '
'the most recent patchset on the server is #%d.'
% (local_patchset, latest_patchset))