Skip to content

Commit

Permalink
S3Boto3: Include error message when reraising (#793)
Browse files Browse the repository at this point in the history
  • Loading branch information
jschneier committed Nov 18, 2019
1 parent c48a883 commit e4077b1
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions storages/backends/s3boto3.py
Expand Up @@ -33,9 +33,8 @@
from boto3 import __version__ as boto3_version
from botocore.client import Config
from botocore.exceptions import ClientError
except ImportError:
raise ImproperlyConfigured("Could not load Boto3's S3 bindings.\n"
"See https://github.com/boto/boto3")
except ImportError as e:
raise ImproperlyConfigured("Could not load Boto3's S3 bindings. %s" % e)


boto3_version_info = tuple([int(i) for i in boto3_version.split('.')])
Expand Down

0 comments on commit e4077b1

Please sign in to comment.