diff options
author | Orgad Shaneh <orgads@gmail.com> | 2013-04-09 05:48:58 +0300 |
---|---|---|
committer | Orgad Shaneh <orgads@gmail.com> | 2013-04-09 05:48:58 +0300 |
commit | a581ad2ad2f25441201876e1c99fa23892e5b495 (patch) | |
tree | 9d8da96604dd439df62968d1fd850bf1d15d28a8 | |
parent | d93c45fca67dbd11512e248464ce138462051054 (diff) |
TrivialRebase: Fix the fix of pylint error :)
Didn't notice the call to group()
Change-Id: I71a5aa712b3005551182812db9236de93ec1a2b7
-rwxr-xr-x | contrib/trivial_rebase.py | 5 |
1 files changed, 3 insertions, 2 deletions
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) |