{"action":"created","issue":{"url":"https://api.github.com/repos/Flexget/Flexget/issues/503","labels_url":"https://api.github.com/repos/Flexget/Flexget/issues/503/labels{/name}","comments_url":"https://api.github.com/repos/Flexget/Flexget/issues/503/comments","events_url":"https://api.github.com/repos/Flexget/Flexget/issues/503/events","html_url":"https://github.com/Flexget/Flexget/pull/503","id":73430676,"number":503,"title":"Close file handles after file is extracted","user":{"login":"ianstalk","id":177604,"avatar_url":"https://avatars.githubusercontent.com/u/177604?v=3","gravatar_id":"","url":"https://api.github.com/users/ianstalk","html_url":"https://github.com/ianstalk","followers_url":"https://api.github.com/users/ianstalk/followers","following_url":"https://api.github.com/users/ianstalk/following{/other_user}","gists_url":"https://api.github.com/users/ianstalk/gists{/gist_id}","starred_url":"https://api.github.com/users/ianstalk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ianstalk/subscriptions","organizations_url":"https://api.github.com/users/ianstalk/orgs","repos_url":"https://api.github.com/users/ianstalk/repos","events_url":"https://api.github.com/users/ianstalk/events{/privacy}","received_events_url":"https://api.github.com/users/ianstalk/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":10,"created_at":"2015-05-05T21:01:56Z","updated_at":"2015-05-06T03:05:33Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/Flexget/Flexget/pulls/503","html_url":"https://github.com/Flexget/Flexget/pull/503","diff_url":"https://github.com/Flexget/Flexget/pull/503.diff","patch_url":"https://github.com/Flexget/Flexget/pull/503.patch"},"body":"Dangling file handles were causing tests to fail under Windows. This is a fix for: http://flexget.com/ticket/3003"},"comment":{"url":"https://api.github.com/repos/Flexget/Flexget/issues/comments/99302743","html_url":"https://github.com/Flexget/Flexget/pull/503#issuecomment-99302743","issue_url":"https://api.github.com/repos/Flexget/Flexget/issues/503","id":99302743,"user":{"login":"gazpachoking","id":187133,"avatar_url":"https://avatars.githubusercontent.com/u/187133?v=3","gravatar_id":"","url":"https://api.github.com/users/gazpachoking","html_url":"https://github.com/gazpachoking","followers_url":"https://api.github.com/users/gazpachoking/followers","following_url":"https://api.github.com/users/gazpachoking/following{/other_user}","gists_url":"https://api.github.com/users/gazpachoking/gists{/gist_id}","starred_url":"https://api.github.com/users/gazpachoking/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gazpachoking/subscriptions","organizations_url":"https://api.github.com/users/gazpachoking/orgs","repos_url":"https://api.github.com/users/gazpachoking/repos","events_url":"https://api.github.com/users/gazpachoking/events{/privacy}","received_events_url":"https://api.github.com/users/gazpachoking/received_events","type":"User","site_admin":false},"created_at":"2015-05-06T03:05:33Z","updated_at":"2015-05-06T03:05:33Z","body":"That is absolutely how this should be handled. Unfortunately you can't do multiple clauses in a with statement in 2.6 :disappointed: I think just nesting the 2 with statements is what we'll have to do. And we should still stick some more specific errors to catch on that except block."}}