Skip to content

Commit

Permalink
fix(urlib): do not warn if the user knows he's disabling SSL verifica…
Browse files Browse the repository at this point in the history
…tion
  • Loading branch information
Jguer committed Jul 12, 2021
1 parent 32602ee commit 40d0299
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ggshield/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
from typing import Iterable, List, Optional

import click
import urllib3
from pygitguardian import GGClient
from pygitguardian.models import Match
from requests import Session
Expand Down Expand Up @@ -220,6 +221,7 @@ def retrieve_client(ctx: click.Context) -> GGClient:

session = Session()
if ctx.obj["config"].allow_self_signed:
urllib3.disable_warnings()
session.verify = False

return GGClient(
Expand Down

0 comments on commit 40d0299

Please sign in to comment.