{"action":"opened","issue":{"url":"https://api.github.com/repos/jakewaldron/PlexEmail/issues/6","labels_url":"https://api.github.com/repos/jakewaldron/PlexEmail/issues/6/labels{/name}","comments_url":"https://api.github.com/repos/jakewaldron/PlexEmail/issues/6/comments","events_url":"https://api.github.com/repos/jakewaldron/PlexEmail/issues/6/events","html_url":"https://github.com/jakewaldron/PlexEmail/issues/6","id":111954572,"number":6,"title":"Line 353: TypeError: Could not guess image MIME subtype","user":{"login":"lmb56","id":15169547,"avatar_url":"https://avatars.githubusercontent.com/u/15169547?v=3","gravatar_id":"","url":"https://api.github.com/users/lmb56","html_url":"https://github.com/lmb56","followers_url":"https://api.github.com/users/lmb56/followers","following_url":"https://api.github.com/users/lmb56/following{/other_user}","gists_url":"https://api.github.com/users/lmb56/gists{/gist_id}","starred_url":"https://api.github.com/users/lmb56/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lmb56/subscriptions","organizations_url":"https://api.github.com/users/lmb56/orgs","repos_url":"https://api.github.com/users/lmb56/repos","events_url":"https://api.github.com/users/lmb56/events{/privacy}","received_events_url":"https://api.github.com/users/lmb56/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-10-17T10:15:45Z","updated_at":"2015-10-17T10:15:45Z","closed_at":null,"body":"File \"C:\\PlexEmail\\scripts\\plexEmail.py\", line 353, in sendMail\r\nmsgImage = MIMEImage(fp.read())\r\nFile \"C:\\Python27\\lib\\email\\mime\\image.py\", line 43, in init\r\nraise TypeError('Could not guess image MIME subtype')\r\nTypeError: Could not guess image MIME subtype\r\n\r\nI have in the script made a temporary workaround:\r\n\r\nEarlier: msgImage = MIMEImage(fp.read())\r\nNow: msgImage = MIMEImage(fp.read(),_subtype=\"png\")\r\n\r\nThe issue could be due to some UTF-8 stuff. I may have the danish letters æ,ø,å in some of the naming of objects. \r\n"}}