From d379e77f44d11da1ab817f3796f9559f163c1b0f Mon Sep 17 00:00:00 2001 From: Yiwei Zhang Date: Wed, 20 Dec 2023 20:39:59 +0000 Subject: [PATCH] stop passing project to UpdateManifestError UpdateManifestError inherits from RepoExitError which inherits from BaseRepoError. None of them takes project as kwargs causing the error like "UpdateManifestError() takes no keyword arguments" in b/317183321 [1]: https://gerrit.googlesource.com/git-repo/+/449b23b698d7d4b13909667a49a0698eb495eeaa/error.py#144 Bug: b/317183321 Change-Id: I64c3dc502027f9dda56a0824f2712364b4502934 Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/398997 Commit-Queue: Yiwei Zhang Tested-by: Yiwei Zhang Reviewed-by: Josip Sokcevic Reviewed-by: Jason Chang --- subcmds/sync.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/subcmds/sync.py b/subcmds/sync.py index ec4bf60d..233c9f40 100644 --- a/subcmds/sync.py +++ b/subcmds/sync.py @@ -1544,9 +1544,7 @@ later is required to fix a server side protocol bug. mp, event_log.TASK_SYNC_LOCAL, start, time.time(), clean ) if not clean: - raise UpdateManifestError( - aggregate_errors=errors, project=mp.name - ) + raise UpdateManifestError(aggregate_errors=errors) self._ReloadManifest(manifest_name, mp.manifest) def ValidateOptions(self, opt, args):