{"action":"created","issue":{"url":"https://api.github.com/repos/aboul3la/Sublist3r/issues/19","repository_url":"https://api.github.com/repos/aboul3la/Sublist3r","labels_url":"https://api.github.com/repos/aboul3la/Sublist3r/issues/19/labels{/name}","comments_url":"https://api.github.com/repos/aboul3la/Sublist3r/issues/19/comments","events_url":"https://api.github.com/repos/aboul3la/Sublist3r/issues/19/events","html_url":"https://github.com/aboul3la/Sublist3r/pull/19","id":163894230,"number":19,"title":"Adding Threatcrowd passive DNS lookup","user":{"login":"the-st0rm","id":3959421,"avatar_url":"https://avatars.githubusercontent.com/u/3959421?v=3","gravatar_id":"","url":"https://api.github.com/users/the-st0rm","html_url":"https://github.com/the-st0rm","followers_url":"https://api.github.com/users/the-st0rm/followers","following_url":"https://api.github.com/users/the-st0rm/following{/other_user}","gists_url":"https://api.github.com/users/the-st0rm/gists{/gist_id}","starred_url":"https://api.github.com/users/the-st0rm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/the-st0rm/subscriptions","organizations_url":"https://api.github.com/users/the-st0rm/orgs","repos_url":"https://api.github.com/users/the-st0rm/repos","events_url":"https://api.github.com/users/the-st0rm/events{/privacy}","received_events_url":"https://api.github.com/users/the-st0rm/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-07-05T16:39:25Z","updated_at":"2016-07-05T16:53:50Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/aboul3la/Sublist3r/pulls/19","html_url":"https://github.com/aboul3la/Sublist3r/pull/19","diff_url":"https://github.com/aboul3la/Sublist3r/pull/19.diff","patch_url":"https://github.com/aboul3la/Sublist3r/pull/19.patch"},"body":""},"comment":{"url":"https://api.github.com/repos/aboul3la/Sublist3r/issues/comments/230536413","html_url":"https://github.com/aboul3la/Sublist3r/pull/19#issuecomment-230536413","issue_url":"https://api.github.com/repos/aboul3la/Sublist3r/issues/19","id":230536413,"user":{"login":"the-st0rm","id":3959421,"avatar_url":"https://avatars.githubusercontent.com/u/3959421?v=3","gravatar_id":"","url":"https://api.github.com/users/the-st0rm","html_url":"https://github.com/the-st0rm","followers_url":"https://api.github.com/users/the-st0rm/followers","following_url":"https://api.github.com/users/the-st0rm/following{/other_user}","gists_url":"https://api.github.com/users/the-st0rm/gists{/gist_id}","starred_url":"https://api.github.com/users/the-st0rm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/the-st0rm/subscriptions","organizations_url":"https://api.github.com/users/the-st0rm/orgs","repos_url":"https://api.github.com/users/the-st0rm/repos","events_url":"https://api.github.com/users/the-st0rm/events{/privacy}","received_events_url":"https://api.github.com/users/the-st0rm/received_events","type":"User","site_admin":false},"created_at":"2016-07-05T16:53:50Z","updated_at":"2016-07-05T16:53:50Z","body":"This pull requests contains 2 things\r\n1- Adding Threatcrowd plugin \r\n\r\n2- Fixing using unreferenced local variable ..\r\ninside enumratorBase => send_req function, \r\n```\r\nurl =  self.base_url.format(query=query, page_no=page_no)\r\n        try:\r\n            resp = self.session.get(url, headers=headers, timeout=self.timeout)\r\n        except Exception as e:\r\n            resp = None\r\n            pass\r\n        return self.get_response(resp)\r\n```\r\nif the exception was raised resp variable will not be defined which will raise another exception at `self.get_response(resp)`\r\n\r\nExample: \r\nProcess BaiduEnum-2:\r\nTraceback (most recent call last):\r\n  File \"/usr/lib/python2.7/multiprocessing/process.py\", line 258, in _bootstrap\r\n    self.run()\r\n  File \"sublist3r.py\", line 202, in run\r\n    domain_list = self.enumerate()\r\n  File \"sublist3r.py\", line 170, in enumerate\r\n    resp = self.send_req(query, page_no)\r\n  File \"sublist3r.py\", line 110, in send_req\r\n    return self.get_response(resp)\r\nUnboundLocalError: local variable 'resp' referenced before assignment\r\n"}}
{"actor":{"display_login":"the-st0rm"}}