Skip to content

Commit

Permalink
Hide sensitive data
Browse files Browse the repository at this point in the history
  • Loading branch information
HungNgien committed Jan 16, 2025
1 parent 7298ca6 commit 3517b1d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/pretix/control/forms/global_settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -271,10 +271,10 @@ def __call__(self, value: str) -> None:

if not any(value.startswith(p) for p in self._prefixes):
if len(self._prefixes) == 1:
message = _('The provided key "%(value)s" does not look valid. It should start with "%(prefix)s".')
message = _('The provided key does not look valid. It should start with "%(prefix)s".')
params = {'value': value, 'prefix': self._prefixes[0]}
else:
message = _('The provided key "%(value)s" does not look valid. It should start with one of: %(prefixes)s')
message = _('The provided key does not look valid. It should start with one of: %(prefixes)s')
params = {'value': value, 'prefixes': ', '.join(f'"{p}"' for p in self._prefixes)}

raise forms.ValidationError(
Expand Down

0 comments on commit 3517b1d

Please sign in to comment.