Skip to content

Commit

Permalink
Don't call a private method on 'boto3.Session()'.
Browse files Browse the repository at this point in the history
  • Loading branch information
geowurster committed Feb 23, 2017
1 parent 04c1231 commit 9f8b9a3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion rasterio/env.py
Expand Up @@ -127,7 +127,8 @@ def auth_aws(self):
aws_session_token=self.aws_session_token,
region_name=self.aws_region_name,
profile_name=self.aws_profile_name)
self._aws_creds = self.aws_session._session.get_credentials()

self._aws_creds = self.aws_session.get_credentials()

# Pass these credentials to the GDAL environment.
if self._aws_creds.access_key: # pragma: no branch
Expand Down

0 comments on commit 9f8b9a3

Please sign in to comment.