Skip to content

Commit d283c83

Browse files
committed
Use continue instead of raising error
1 parent ffddedf commit d283c83

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

git/util.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -356,14 +356,14 @@ def remove_password_if_present(cmdline):
356356
url = urlsplit(to_parse)
357357
# Remove password from the URL if present
358358
if url.password is None:
359-
raise ValueError()
359+
continue
360360

361361
edited_url = url._replace(
362362
netloc=url.netloc.replace(url.password, "*****"))
363363
new_cmdline[index] = urlunsplit(edited_url)
364364
except ValueError:
365365
# This is not a valid URL
366-
pass
366+
continue
367367
return new_cmdline
368368

369369

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy