[Updater] Fix warning
Test: run
Change-Id: I5880b92bd97922d7584ac1d678ddc0b925a28b8f
diff --git a/external_updater.py b/external_updater.py
index d2be334..1745549 100644
--- a/external_updater.py
+++ b/external_updater.py
@@ -182,7 +182,7 @@
def _do_update(args):
- updater, err = check_update(args.path)
+ updater, _ = check_update(args.path)
if updater is None:
return
if not has_new_version(updater) and not args.force:
@@ -193,7 +193,7 @@
git_utils.checkout(full_path, args.remote_name + '/master')
try:
git_utils.delete_branch(full_path, TMP_BRANCH_NAME)
- except subprocess.CalledProcessError as err:
+ except subprocess.CalledProcessError:
# Still continue if the branch doesn't exist.
pass
git_utils.start_branch(full_path, TMP_BRANCH_NAME)