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 authored and GitHub committed 2019-04-17 15:24:37 +02:00
commit affe86d5aa
1 file changed
+1 -1
+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')
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.