INNER CODE UNIT · Python
header
shuvonsec/claude-bug-bounty · engine.py:72
def header(title: str):
width = max(len(title) + 4, 60)
print(f"\n{BOLD}{'═' * width}{NC}")
print(f"{BOLD} {title}{NC}")
print(f"{BOLD}{'═' * width}{NC}\n")
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 {}