Skip to content

Commit

Permalink
Reword/Fixup
Browse files Browse the repository at this point in the history
After testing this will be a Fixup to comply with contribution guidelines before marking as ready for review.
  • Loading branch information
TrevorBenson authored Dec 17, 2023
1 parent e5c2442 commit e8f3b60
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions sos/policies/distros/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -905,6 +905,9 @@ def upload_s3(self, endpoint=None, region=None, bucket=None, prefix=None,
:raises: Exception if upload is unsuccessful
"""
if not BOTO3_LOADED:
raise Exception("Unable to upload due to missing python boto3 "
"library")

if not endpoint:
endpoint = self.get_upload_s3_endpoint()
Expand Down

0 comments on commit e8f3b60

Please sign in to comment.