Merge pull request #51 from yvaucher/fix-aws-host-empty

Fix use of aws where hostname is not required
This commit is contained in:
Simone Orsi
2019-04-17 15:24:37 +02:00
committed by GitHub
co-authored by GitHub
+1 -1
View File
@@ -49,7 +49,7 @@ class IrAttachment(models.Model):
host = os.environ.get('AWS_HOST')
# Ensure host is prefixed with a scheme (use https as default)
if not urlsplit(host).scheme:
if host and not urlsplit(host).scheme:
host = 'https://%s' % host
region_name = os.environ.get('AWS_REGION')