From 8dc3f524adbab4e09885b644700b12ae2c12e5ff Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tor=20Arne=20Vestb=C3=B8?= Date: Sun, 6 Mar 2016 18:16:49 +0100 Subject: [PATCH] Remove useless sanity check for sparse photo album assets The length of a hash will always equal the length of its values. --- pyicloud/services/photos.py | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/pyicloud/services/photos.py b/pyicloud/services/photos.py index e77c215..66bd288 100644 --- a/pyicloud/services/photos.py +++ b/pyicloud/services/photos.py @@ -188,12 +188,7 @@ class PhotoAlbum(object): orientation, self) previous_asset_id = asset_id - asset_values = assets.values() - if len(asset_values) != len(assets): - raise PyiCloudBinaryFeedParseError( - "Sparse photo album index detected") - - return asset_values + return assets.values() def _fetch_asset_data_for(self, asset): if asset.client_id in self.service._photo_assets: