{"action":"created","issue":{"url":"https://api.github.com/repos/gingerlime/smugline/issues/14","labels_url":"https://api.github.com/repos/gingerlime/smugline/issues/14/labels{/name}","comments_url":"https://api.github.com/repos/gingerlime/smugline/issues/14/comments","events_url":"https://api.github.com/repos/gingerlime/smugline/issues/14/events","html_url":"https://github.com/gingerlime/smugline/issues/14","id":96254217,"number":14,"title":"KeyError: MD5Sum","user":{"login":"trond7","id":6748232,"avatar_url":"https://avatars.githubusercontent.com/u/6748232?v=3","gravatar_id":"","url":"https://api.github.com/users/trond7","html_url":"https://github.com/trond7","followers_url":"https://api.github.com/users/trond7/followers","following_url":"https://api.github.com/users/trond7/following{/other_user}","gists_url":"https://api.github.com/users/trond7/gists{/gist_id}","starred_url":"https://api.github.com/users/trond7/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/trond7/subscriptions","organizations_url":"https://api.github.com/users/trond7/orgs","repos_url":"https://api.github.com/users/trond7/repos","events_url":"https://api.github.com/users/trond7/events{/privacy}","received_events_url":"https://api.github.com/users/trond7/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-07-21T08:02:08Z","updated_at":"2015-07-21T09:06:21Z","closed_at":null,"body":"I have been using you script to upload around 2000 images spread over multiple folders.\r\nFor most folders it works fine but for a few I got an error after uploading some of the images.\r\nWhen I try to run the script again for these folders I alway get the same error.\r\nWhen I run the same command again the script does not give any skipping image messages for the images it had managed to upload. It throws the error instantly.\r\n\r\n**Complete Error message:**\r\n\r\nTraceback (most recent call last):\r\n  File \"/home/thh/bin/smugline/smugline.py\", line 303, in <module>\r\n    file_filter)\r\n  File \"/home/thh/bin/smugline/smugline.py\", line 137, in upload_folder\r\n    self._upload(images, album_name, album)\r\n  File \"/home/thh/bin/smugline/smugline.py\", line 148, in _upload\r\n    images = self._remove_duplicates(images, album)\r\n  File \"/home/thh/bin/smugline/smugline.py\", line 202, in _remove_duplicates\r\n    md5_sums = self._get_md5_hashes_for_album(album)\r\n  File \"/home/thh/bin/smugline/smugline.py\", line 168, in _get_md5_hashes_for_album\r\n    md5_sums = [x['MD5Sum'] for x in remote_images['Album']['Images']]\r\nKeyError: 'MD5Sum'\r\n\r\n**My environment:**\r\n- Ubuntu 12.04 LTS \r\n- Python 2.7.3\r\n- smugline = Already up-to-date\r\n\r\n**More comments:**\r\nIt does not stop on strange filenames\r\n--> All image filenames have the same  structure like  “DSC_0626.JPG”\r\nIt is not any strange folder names\r\n-->  It does upload some of the images\r\nI happens only sometime\r\n--> 5 out of approximately 120 folders has this error\r\nAll images in the folder has the same ownership and permission\r\n--> Owner is me (permission rwx,rwx,rwx)\r\n\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/gingerlime/smugline/issues/comments/123224802","html_url":"https://github.com/gingerlime/smugline/issues/14#issuecomment-123224802","issue_url":"https://api.github.com/repos/gingerlime/smugline/issues/14","id":123224802,"user":{"login":"Newman101","id":4118513,"avatar_url":"https://avatars.githubusercontent.com/u/4118513?v=3","gravatar_id":"","url":"https://api.github.com/users/Newman101","html_url":"https://github.com/Newman101","followers_url":"https://api.github.com/users/Newman101/followers","following_url":"https://api.github.com/users/Newman101/following{/other_user}","gists_url":"https://api.github.com/users/Newman101/gists{/gist_id}","starred_url":"https://api.github.com/users/Newman101/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Newman101/subscriptions","organizations_url":"https://api.github.com/users/Newman101/orgs","repos_url":"https://api.github.com/users/Newman101/repos","events_url":"https://api.github.com/users/Newman101/events{/privacy}","received_events_url":"https://api.github.com/users/Newman101/received_events","type":"User","site_admin":false},"created_at":"2015-07-21T09:06:21Z","updated_at":"2015-07-21T09:06:21Z","body":"Hi. It seems that there is a gallery cap in SmugMug: \r\n\r\nhttp://news.smugmug.com/2013/03/20/uploading-to-smugmug-what-how-big-and-how-many/\r\n\r\nOfficially, the documentation says that the cap is 5000 images per gallery, but there are reports that the cap would be actually 2000. \r\n\r\nKeyError exception is raised when a mapping a key is not found in the set of existing keys, so this would make sense if the cap is being hit. "}}