Skip to content

Commit efacc36

Browse files
authored
Merge pull request #68 from rnc/BR1
Clarify exception message
2 parents 4b3768d + 9455de9 commit efacc36

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: osia/installer/dns/route53.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ def _get_hosted_zone(self):
4242
zones = _get_connection().list_hosted_zones()['HostedZones']
4343
result = [v['Id'] for v in zones if v['Name'] == (self.base_domain + ".")]
4444
if len(result) == 0:
45-
raise Exception("Invalid number of results")
45+
raise Exception(f"Unable to find hosted_zone {self.base_domain} in zone list.")
4646
self.zone_id = result[0]
4747
return self.zone_id
4848

0 commit comments

Comments
 (0)