Skip to content
  • Stavros Sachtouris's avatar
    On SSL error, fall back to default certificates · 7be0894f
    Stavros Sachtouris authored
    Create a decorator "ssl_fall_back" which catches a KamakiSSLError,
    patches kamaki with the default certificates bundle and reruns the
    failed method.
    
    The decorator is used on the "SyncerSettings._get_pithos_client"
    method, because this is the first point of SSL failure.
    
    The default certificates bundle is acquired from the package
    "certifi", which has been added to dependencies.
    7be0894f