MCPcopy Create free account
hub / github.com/nathom/streamrip / print_ssl_error_help

Function print_ssl_error_help

streamrip/utils/ssl_utils.py:61–75  ·  view source on GitHub ↗

Print helpful error message when SSL verification fails.

()

Source from the content-addressed store, hash-verified

59
60
61def print_ssl_error_help():
62 """Print helpful error message when SSL verification fails."""
63 print("\nError: Cannot verify SSL certificate.")
64 print("Options:")
65 print(" 1. Run again with the --no-ssl-verify flag (less secure)")
66 print(
67 ' Example: rip --no-ssl-verify url "https://tidal.com/browse/playlist/..."'
68 )
69 print()
70 print(" 2. Install certifi for better certificate handling:")
71 print(" pip install certifi")
72 print()
73 print(" 3. Update your certificates:")
74 print(" pip install --upgrade certifi")
75 sys.exit(1)

Callers 3

urlFunction · 0.85
fileFunction · 0.85

Calls

no outgoing calls

Tested by 1