Merge "TrivialRebase: Fix the fix of pylint error :)" into stable-2.6

This commit is contained in:
David Pursehouse 2013-04-09 04:58:47 +00:00 committed by Gerrit Code Review
commit 7b07b3372e

View File

@ -149,8 +149,9 @@ def Main():
"[default: %(default)s]")
args = parser.parse_known_args()[0]
changeId = re.search(r'\d+', args.changeUrl).group()
if changeId is None:
try:
changeId = re.search(r'\d+', args.changeUrl).group()
except AttributeError:
parser.print_help()
exit(0)