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:
Tor Arne Vestbø 2016-03-06 18:16:49 +01:00
parent 9817d6b08a
commit 8dc3f524ad

View file

@ -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: