INNER CODE UNIT · Python

load_config

shuvonsec/claude-bug-bounty · engine.py:79

def load_config() -> dict:
    if CONFIG.exists():
        try:
            return json.loads(CONFIG.read_text())
        except json.JSONDecodeError as e:
            warn(f"Corrupted config file {CONFIG}, using defaults: {e}")
        except OSError as e:
            warn(f"Could not read config file {CONFIG}: {e}")
    return {}


def save_config(cfg: dict):
    CONFIG.parent.mkdir(parents=True, exist_ok=True)
    CONFIG.write_text(json.dumps(cfg, indent=2))
    os.chmod(CONFIG, 0o600)


COMMAND_ALIASES = {

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…