diff --git a/pyicloud/services/photos.py b/pyicloud/services/photos.py index 2b83071..47d2e37 100644 --- a/pyicloud/services/photos.py +++ b/pyicloud/services/photos.py @@ -452,9 +452,12 @@ class PhotoAsset(object): @property def asset_date(self): - dt = datetime.fromtimestamp( - self._asset_record['fields']['assetDate']['value'] / 1000.0, - tz=pytz.utc) + try: + dt = datetime.fromtimestamp( + self._asset_record['fields']['assetDate']['value'] / 1000.0, + tz=pytz.utc) + except: + dt = datetime.fromtimestamp(0) return dt @property