Remove useless sanity check for sparse photo album assets
The length of a hash will always equal the length of its values.
This commit is contained in:
parent
9817d6b08a
commit
8dc3f524ad
1 changed files with 1 additions and 6 deletions
|
@ -188,12 +188,7 @@ class PhotoAlbum(object):
|
||||||
orientation, self)
|
orientation, self)
|
||||||
previous_asset_id = asset_id
|
previous_asset_id = asset_id
|
||||||
|
|
||||||
asset_values = assets.values()
|
return assets.values()
|
||||||
if len(asset_values) != len(assets):
|
|
||||||
raise PyiCloudBinaryFeedParseError(
|
|
||||||
"Sparse photo album index detected")
|
|
||||||
|
|
||||||
return asset_values
|
|
||||||
|
|
||||||
def _fetch_asset_data_for(self, asset):
|
def _fetch_asset_data_for(self, asset):
|
||||||
if asset.client_id in self.service._photo_assets:
|
if asset.client_id in self.service._photo_assets:
|
||||||
|
|
Loading…
Reference in a new issue