Skip to content

Commit

Permalink
Dont remove helpful stacktrace
Browse files Browse the repository at this point in the history
  • Loading branch information
myoung34 committed May 15, 2018
1 parent 5426813 commit a648a3b
Showing 1 changed file with 7 additions and 10 deletions.
17 changes: 7 additions & 10 deletions fedcred/providers/adfs.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,15 +70,12 @@ def auth(self):
assertion = common.get_saml_assertion(response)
arn_to_assume = common.get_arns_from_assertion(assertion)
sts_creds = common.get_sts_creds(arn_to_assume)
try:
common.write_credentials(
self.config.get(
common.DEFAULT_CONFIG_SECTION,
'aws_credential_profile'
),
sts_creds
)
except (NoOptionError, NoSectionError) as e:
sys.exit(e.message)
common.write_credentials(
self.config.get(
common.DEFAULT_CONFIG_SECTION,
'aws_credential_profile'
),
sts_creds
)
except requests.exceptions.ConnectionError as e:
sys.exit('Could not connect to %s. %s' % (self.idpurl, e))

0 comments on commit a648a3b

Please sign in to comment.