From e8f3b605213ace6546c70bbcbd195d1f78fc5d20 Mon Sep 17 00:00:00 2001 From: illuminatus Date: Sun, 17 Dec 2023 14:48:45 -0800 Subject: [PATCH] Reword/Fixup After testing this will be a Fixup to comply with contribution guidelines before marking as ready for review. --- sos/policies/distros/__init__.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sos/policies/distros/__init__.py b/sos/policies/distros/__init__.py index bd6d812a0f..1ef9c4c7a6 100644 --- a/sos/policies/distros/__init__.py +++ b/sos/policies/distros/__init__.py @@ -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()