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]")
|
"[default: %(default)s]")
|
||||||
|
|
||||||
args = parser.parse_known_args()[0]
|
args = parser.parse_known_args()[0]
|
||||||
changeId = re.search(r'\d+', args.changeUrl).group()
|
try:
|
||||||
if changeId is None:
|
changeId = re.search(r'\d+', args.changeUrl).group()
|
||||||
|
except AttributeError:
|
||||||
parser.print_help()
|
parser.print_help()
|
||||||
exit(0)
|
exit(0)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user