diff --git a/01-webotron/webotron/cdn.py b/01-webotron/webotron/cdn.py index bb6ff46..21b2ab1 100644 --- a/01-webotron/webotron/cdn.py +++ b/01-webotron/webotron/cdn.py @@ -19,7 +19,7 @@ def find_matching_dist(self, domain_name): for page in paginator.paginate(): print(page) for dist in page['DistributionList'].get('Items', []): - for alias in dist['Aliases']['Items']: + for alias in dist['Aliases'].get('Items', []): if alias == domain_name: return dist