GIT.Capture doesn't throw gclient_utils.Error anymore.

Fix case where git-try fails for branch not still uploaded to rietveld.

TBR=dpranke@chromium.org
BUG=
TEST=


Review URL: http://codereview.chromium.org/7860004

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@100244 0039d316-1c4b-4281-b951-d872f2087c98
experimental/szager/collated-output
maruel@chromium.org 14 years ago
parent 087066c553
commit 0112bfb516

@ -9,8 +9,8 @@ import sys
import breakpad # pylint: disable=W0611
import gclient_utils
from scm import GIT
import subprocess2
import third_party.upload
import trychange
@ -19,7 +19,7 @@ def GetRietveldIssueNumber():
try:
return GIT.Capture(
['config', 'branch.%s.rietveldissue' % GIT.GetBranch(None)])
except gclient_utils.Error:
except subprocess2.CalledProcessError:
return None
@ -27,14 +27,14 @@ def GetRietveldPatchsetNumber():
try:
return GIT.Capture(
['config', 'branch.%s.rietveldpatchset' % GIT.GetBranch(None)])
except gclient_utils.Error:
except subprocess2.CalledProcessError:
return None
def GetRietveldServerUrl():
try:
return GIT.Capture(['config', 'rietveld.server']).strip()
except gclient_utils.Error:
except subprocess2.CalledProcessError:
return None

Loading…
Cancel
Save