mirror of
https://github.com/unshackle-dl/unshackle.git
synced 2026-11-29 20:45:11 +00:00
fix(remote): answer malformed input with one line and keep secrets out of logs
This commit is contained in:
@@ -88,7 +88,7 @@ def test_to_dict_redacts_again_only_when_an_error_field_changes(monkeypatch):
|
||||
|
||||
calls = []
|
||||
real = download_manager._redact_text
|
||||
monkeypatch.setattr(download_manager, "_redact_text", lambda text, params: calls.append(text) or real(text, params))
|
||||
monkeypatch.setattr(download_manager, "_redact_text", lambda text, *rest: calls.append(text) or real(text, *rest))
|
||||
job = DownloadJob(
|
||||
job_id="j1",
|
||||
status=JobStatus.FAILED,
|
||||
|
||||
Reference in New Issue
Block a user