Skip to content

Commit

Permalink
fix: log the GitCommandError
Browse files Browse the repository at this point in the history
  • Loading branch information
vanpipy committed Feb 27, 2024
1 parent f084329 commit 6b8517b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,8 +112,8 @@ def invoke_installed_extras_command(self, name, *params):
def change_origin(self, origin_url):
try:
self._git_repo.git.remote("add", "origin", origin_url)
except GitCommandError:
pass
except GitCommandError as err:
print(err)
self._git_repo.git.remote("set-url", "origin", origin_url)

def change_origin_to_github(self):
Expand Down

0 comments on commit 6b8517b

Please sign in to comment.