Print helpful error message when SSL verification fails.
()
| 59 | |
| 60 | |
| 61 | def 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) |
no outgoing calls