Skip to content

Commit

Permalink
update exception raised by photos service to use actual exception cla…
Browse files Browse the repository at this point in the history
…ssname

was updated in pyicloud, but not reflected in phtoos service until this commit
  • Loading branch information
cfurrow committed Dec 9, 2023
1 parent 35e8c53 commit 97fa083
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/pyicloud_ipd/services/photos.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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)

Expand Down

0 comments on commit 97fa083

Please sign in to comment.