File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
redshift_connector/plugin Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -32,7 +32,6 @@ def get_saml_assertion(self: "PingCredentialsProvider") -> str:
32
32
self .check_required_parameters ()
33
33
34
34
with requests .Session () as session :
35
-
36
35
if self .partner_sp_id is None :
37
36
self .partner_sp_id = "urn%3Aamazon%3Awebservices"
38
37
@@ -47,7 +46,9 @@ def get_saml_assertion(self: "PingCredentialsProvider") -> str:
47
46
_logger .debug ("get_saml_assertion https response: {}" .format (response .text )) # type: ignore
48
47
else :
49
48
_logger .debug ("get_saml_assertion could not receive https response due to an error" )
50
- _logger .error ("Request for SAML assertion when refreshing credentials was unsuccessful. {}" .format (str (e )))
49
+ _logger .error (
50
+ "Request for SAML assertion when refreshing credentials was unsuccessful. {}" .format (str (e ))
51
+ )
51
52
raise InterfaceError (e )
52
53
except requests .exceptions .Timeout as e :
53
54
_logger .error ("A timeout occurred when requesting SAML assertion" )
You can’t perform that action at this time.
0 commit comments