{"action":"created","issue":{"url":"https://api.github.com/repos/sot/proseco/issues/74","repository_url":"https://api.github.com/repos/sot/proseco","labels_url":"https://api.github.com/repos/sot/proseco/issues/74/labels{/name}","comments_url":"https://api.github.com/repos/sot/proseco/issues/74/comments","events_url":"https://api.github.com/repos/sot/proseco/issues/74/events","html_url":"https://github.com/sot/proseco/issues/74","id":359455417,"node_id":"MDU6SXNzdWUzNTk0NTU0MTc=","number":74,"title":"Use traceback to capture exception stack trace","user":{"login":"taldcroft","id":348089,"node_id":"MDQ6VXNlcjM0ODA4OQ==","avatar_url":"https://avatars1.githubusercontent.com/u/348089?v=4","gravatar_id":"","url":"https://api.github.com/users/taldcroft","html_url":"https://github.com/taldcroft","followers_url":"https://api.github.com/users/taldcroft/followers","following_url":"https://api.github.com/users/taldcroft/following{/other_user}","gists_url":"https://api.github.com/users/taldcroft/gists{/gist_id}","starred_url":"https://api.github.com/users/taldcroft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/taldcroft/subscriptions","organizations_url":"https://api.github.com/users/taldcroft/orgs","repos_url":"https://api.github.com/users/taldcroft/repos","events_url":"https://api.github.com/users/taldcroft/events{/privacy}","received_events_url":"https://api.github.com/users/taldcroft/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/sot/proseco/milestones/2","html_url":"https://github.com/sot/proseco/milestone/2","labels_url":"https://api.github.com/repos/sot/proseco/milestones/2/labels","id":3645413,"node_id":"MDk6TWlsZXN0b25lMzY0NTQxMw==","number":2,"title":"1.0 interface release","description":"Release that is not feature-complete but has a candidate Matlab interface API to allow for integration development and testing along with initial functional testing.","creator":{"login":"taldcroft","id":348089,"node_id":"MDQ6VXNlcjM0ODA4OQ==","avatar_url":"https://avatars1.githubusercontent.com/u/348089?v=4","gravatar_id":"","url":"https://api.github.com/users/taldcroft","html_url":"https://github.com/taldcroft","followers_url":"https://api.github.com/users/taldcroft/followers","following_url":"https://api.github.com/users/taldcroft/following{/other_user}","gists_url":"https://api.github.com/users/taldcroft/gists{/gist_id}","starred_url":"https://api.github.com/users/taldcroft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/taldcroft/subscriptions","organizations_url":"https://api.github.com/users/taldcroft/orgs","repos_url":"https://api.github.com/users/taldcroft/repos","events_url":"https://api.github.com/users/taldcroft/events{/privacy}","received_events_url":"https://api.github.com/users/taldcroft/received_events","type":"User","site_admin":false},"open_issues":7,"closed_issues":1,"state":"open","created_at":"2018-09-11T17:06:05Z","updated_at":"2018-09-12T12:34:32Z","due_on":"2018-09-14T07:00:00Z","closed_at":null},"comments":1,"created_at":"2018-09-12T12:23:33Z","updated_at":"2018-09-12T12:41:24Z","closed_at":null,"author_association":"MEMBER","body":"In the ACA catalog object, there should be code like below to catch any exception.  Then the traceback should be put into `meta['exception']`.  This will wind up in the pickle and can be examined by the developers.\r\n\r\n```\r\nIn [30]: import traceback\r\nIn [31]: try:\r\n    ...:     1/0\r\n    ...: except Exception:\r\n    ...:     print(traceback.format_exc())\r\n    ...:     \r\nTraceback (most recent call last):\r\n  File \"<ipython-input-31-d18bde6b97c4>\", line 2, in <module>\r\n    1/0\r\nZeroDivisionError: division by zero\r\n```\r\nMilestoned for 1.0 to help us debug anything weird that comes up."},"comment":{"url":"https://api.github.com/repos/sot/proseco/issues/comments/420633364","html_url":"https://github.com/sot/proseco/issues/74#issuecomment-420633364","issue_url":"https://api.github.com/repos/sot/proseco/issues/74","id":420633364,"node_id":"MDEyOklzc3VlQ29tbWVudDQyMDYzMzM2NA==","user":{"login":"taldcroft","id":348089,"node_id":"MDQ6VXNlcjM0ODA4OQ==","avatar_url":"https://avatars1.githubusercontent.com/u/348089?v=4","gravatar_id":"","url":"https://api.github.com/users/taldcroft","html_url":"https://github.com/taldcroft","followers_url":"https://api.github.com/users/taldcroft/followers","following_url":"https://api.github.com/users/taldcroft/following{/other_user}","gists_url":"https://api.github.com/users/taldcroft/gists{/gist_id}","starred_url":"https://api.github.com/users/taldcroft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/taldcroft/subscriptions","organizations_url":"https://api.github.com/users/taldcroft/orgs","repos_url":"https://api.github.com/users/taldcroft/repos","events_url":"https://api.github.com/users/taldcroft/events{/privacy}","received_events_url":"https://api.github.com/users/taldcroft/received_events","type":"User","site_admin":false},"created_at":"2018-09-12T12:41:24Z","updated_at":"2018-09-12T12:41:24Z","author_association":"MEMBER","body":"It should just be roughly:\r\n```\r\ndef get_aca_catalog(**kwargs):\r\n    try:\r\n        aca = _get_aca_catalog(**kwargs)\r\n    except Exception:\r\n        aca = ACACatalogTable.empty()  # Makes zero-length table with correct columns\r\n        aca.meta['exception'] = traceback.format_exc()\r\n    return aca\r\n\r\ndef _get_aca_catalog(**kwargs):\r\n    # Does the real work\r\n```\r\nThere is no \"catch-anything\" exception handling in any lower level classes or methods."}}
{"actor":{"display_login":"taldcroft"}}