From a581ad2ad2f25441201876e1c99fa23892e5b495 Mon Sep 17 00:00:00 2001 From: Orgad Shaneh Date: Tue, 9 Apr 2013 05:48:58 +0300 Subject: TrivialRebase: Fix the fix of pylint error :) Didn't notice the call to group() Change-Id: I71a5aa712b3005551182812db9236de93ec1a2b7 --- contrib/trivial_rebase.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'contrib') diff --git a/contrib/trivial_rebase.py b/contrib/trivial_rebase.py index e41d8361eb..cb67b53a46 100755 --- a/contrib/trivial_rebase.py +++ b/contrib/trivial_rebase.py @@ -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) -- cgit v1.2.3