diff --git a/src/pyicloud_ipd/services/photos.py b/src/pyicloud_ipd/services/photos.py index 2c53c4b1d..2e66b9317 100644 --- a/src/pyicloud_ipd/services/photos.py +++ b/src/pyicloud_ipd/services/photos.py @@ -5,7 +5,7 @@ import re from datetime import datetime -from pyicloud_ipd.exceptions import PyiCloudServiceNotActivatedErrror +from pyicloud_ipd.exceptions import PyiCloudServiceNotActivatedException from pyicloud_ipd.exceptions import PyiCloudAPIResponseError import pytz @@ -159,7 +159,7 @@ def __init__(self, service, zone_id): response = request.json() indexing_state = response['records'][0]['fields']['state']['value'] if indexing_state != 'FINISHED': - raise PyiCloudServiceNotActivatedErrror( + raise PyiCloudServiceNotActivatedException( ('iCloud Photo Library not finished indexing. Please try ' 'again in a few minutes'), None)