mirror of
https://github.com/pewdiepie-archdaemon/odysseus.git
synced 2026-06-16 17:55:26 -04:00
Ignore non-object settings scrub inputs (#1645)
This commit is contained in:
@@ -47,4 +47,6 @@ def _scrub_value(key, value):
|
||||
|
||||
def scrub_settings(settings: dict) -> dict:
|
||||
"""Return a copy of ``settings`` with secret-shaped values masked (deep)."""
|
||||
if not isinstance(settings, dict):
|
||||
return {}
|
||||
return {k: _scrub_value(k, v) for k, v in (settings or {}).items()}
|
||||
|
||||
Reference in New Issue
Block a user