GitHub PullRequestReviewCommentEvent at 2014-01-17 21:18:48
Repository: azure-sdk-tools
Actor: jeffwilcox
Payload: {"comment":{"url":"https://api.github.com/repos/WindowsAzure/azure-sdk-tools/pulls/comments/8980456","id":8980456,"diff_hunk":"@@ -43,9 +43,16 @@ public override void ExecuteCmdlet()\n                 Name,\n                 () =>\n                     {\n-                        Site websiteObject = WebsitesClient.GetWebsite(Name, Slot);\n-                        WebsitesClient.DeleteWebsite(websiteObject.WebSpace, Name, Slot);\n-                        Cache.RemoveSite(CurrentSubscription.SubscriptionId, websiteObject);\n+                        try\n+                        {\n+                            Site websiteObject = WebsitesClient.GetWebsite(Name, Slot);\n+                            WebsitesClient.DeleteWebsite(websiteObject.WebSpace, Name, Slot);\n+                            Cache.RemoveSite(CurrentSubscription.SubscriptionId, websiteObject);\n+                        }\n+                        catch","path":"WindowsAzurePowershell/src/Commands/Websites/RemoveAzureWebSite.cs","position":13,"original_position":13,"commit_id":"c7ea3051586da9cbadaba6e40ec4f004c011a562","original_commit_id":"c7ea3051586da9cbadaba6e40ec4f004c011a562","user":{"login":"jeffwilcox","id":427913,"avatar_url":"https://gravatar.com/avatar/2b2152c679ceac7ae9043a12a0f71974?d=https%3A%2F%2Fidenticons.github.com%2Fd0ec0bcab288595dd92bf8043974a38d.png&r=x","gravatar_id":"2b2152c679ceac7ae9043a12a0f71974","url":"https://api.github.com/users/jeffwilcox","html_url":"https://github.com/jeffwilcox","followers_url":"https://api.github.com/users/jeffwilcox/followers","following_url":"https://api.github.com/users/jeffwilcox/following{/other_user}","gists_url":"https://api.github.com/users/jeffwilcox/gists{/gist_id}","starred_url":"https://api.github.com/users/jeffwilcox/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jeffwilcox/subscriptions","organizations_url":"https://api.github.com/users/jeffwilcox/orgs","repos_url":"https://api.github.com/users/jeffwilcox/repos","events_url":"https://api.github.com/users/jeffwilcox/events{/privacy}","received_events_url":"https://api.github.com/users/jeffwilcox/received_events","type":"User","site_admin":false},"body":"Is there a specific exception type that be caught here instead of a global catch?","created_at":"2014-01-17T21:18:48Z","updated_at":"2014-01-17T21:18:48Z","html_url":"https://github.com/WindowsAzure/azure-sdk-tools/pull/2248#discussion_r8980456","pull_request_url":"https://api.github.com/repos/WindowsAzure/azure-sdk-tools/pulls/2248","_links":{"self":{"href":"https://api.github.com/repos/WindowsAzure/azure-sdk-tools/pulls/comments/8980456"},"html":{"href":"https://github.com/WindowsAzure/azure-sdk-tools/pull/2248#discussion_r8980456"},"pull_request":{"href":"https://api.github.com/repos/WindowsAzure/azure-sdk-tools/pulls/2248"}}}}