diff options
author | Michael Mercier <michael.mercier@ryax.tech> | 2021-03-18 17:01:43 +0100 |
---|---|---|
committer | Michael Mercier <michael.mercier@ryax.tech> | 2021-03-18 17:01:43 +0100 |
commit | d283c83c43f5e52a1a14e55b35ffe85a780615d8 (patch) | |
tree | 99bb242412da9db80b1af4e04ecfcc928bb3f738 | |
parent | ffddedf5467df993b7a42fbd15afacb901bca6d7 (diff) | |
download | gitpython-d283c83c43f5e52a1a14e55b35ffe85a780615d8.tar.gz |
Use continue instead of raising error
-rw-r--r-- | git/util.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/git/util.py b/git/util.py index 907c6998..d0aec5ae 100644 --- a/git/util.py +++ b/git/util.py @@ -356,14 +356,14 @@ def remove_password_if_present(cmdline): url = urlsplit(to_parse) # Remove password from the URL if present if url.password is None: - raise ValueError() + continue edited_url = url._replace( netloc=url.netloc.replace(url.password, "*****")) new_cmdline[index] = urlunsplit(edited_url) except ValueError: # This is not a valid URL - pass + continue return new_cmdline |