Skip to content

Commit ff0d0c8

Browse files
committed
Dont mask if there's no auth.
1 parent 8ef4ac5 commit ff0d0c8

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

CHANGELOG.rst

+5
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@
22
Changelog
33
=========
44

5+
5.1.1 (2024-05-21)
6+
------------------
7+
8+
* Do not display an authentication mask for http protocols if there are no actual credentials specified.
9+
510
5.1.0 (2024-04-12)
611
------------------
712

src/holdup/checks.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ def __repr__(self):
158158

159159
def display_definition(self, *, verbose_passwords):
160160
url = self.parsed_url
161-
if not verbose_passwords:
161+
if url.username and not verbose_passwords:
162162
if not url.password:
163163
mask = "******"
164164
else:

0 commit comments

Comments
 (0)