Merge "TrivialRebase: Fix the fix of pylint error :)" into stable-2.6
This commit is contained in:
commit
7b07b3372e
@ -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)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user