{"action":"created","issue":{"url":"https://api.github.com/repos/RPi-Distro/python-gpiozero/issues/700","repository_url":"https://api.github.com/repos/RPi-Distro/python-gpiozero","labels_url":"https://api.github.com/repos/RPi-Distro/python-gpiozero/issues/700/labels{/name}","comments_url":"https://api.github.com/repos/RPi-Distro/python-gpiozero/issues/700/comments","events_url":"https://api.github.com/repos/RPi-Distro/python-gpiozero/issues/700/events","html_url":"https://github.com/RPi-Distro/python-gpiozero/issues/700","id":390835750,"node_id":"MDU6SXNzdWUzOTA4MzU3NTA=","number":700,"title":"Obj must be an instance or subtype of type","user":{"login":"filips123","id":16626308,"node_id":"MDQ6VXNlcjE2NjI2MzA4","avatar_url":"https://avatars2.githubusercontent.com/u/16626308?v=4","gravatar_id":"","url":"https://api.github.com/users/filips123","html_url":"https://github.com/filips123","followers_url":"https://api.github.com/users/filips123/followers","following_url":"https://api.github.com/users/filips123/following{/other_user}","gists_url":"https://api.github.com/users/filips123/gists{/gist_id}","starred_url":"https://api.github.com/users/filips123/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/filips123/subscriptions","organizations_url":"https://api.github.com/users/filips123/orgs","repos_url":"https://api.github.com/users/filips123/repos","events_url":"https://api.github.com/users/filips123/events{/privacy}","received_events_url":"https://api.github.com/users/filips123/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2018-12-13T19:58:03Z","updated_at":"2018-12-24T17:49:02Z","closed_at":null,"author_association":"NONE","body":"**Environment:**\r\n\r\nOperating system: Raspbian Stretch\r\nPi model: Model B Plus Rev 1.2\r\nGPIO Zero version: 1.4.1\r\nPin factory used: RPiGPIO\r\n\r\n**Description:**\r\n\r\nI have some code that is called multiple times per second and sometimes the execution overlaps.\r\n\r\nI do not care if sometimes there will be error while getting data, so I made exception handler that simply ignores exception. It often works normally, but sometimes there is an error.\r\n\r\nSometimes the execution is permanently stopped even I handle the exceptions bacause I get error `obj must be an instance or subtype of type`. \r\n\r\nThis is weird because it skips the handler. It even skips the try block that was for whole file. Maybe this is problem because I'm using threads and it can't handle it.\r\n\r\nI fixed this using global per-initialization of sensors, but I still don't know, why that exception wasn't caught.\r\n\r\n**Exception:**\r\n\r\n```\r\nTraceback (most recent call last):\r\n  File \"/usr/lib/python3/dist-packages/gpiozero/pins/rpigpio.py\", line 213, in _call_when_changed\r\n    super(RPiGPIOPin, self)._call_when_changed()\r\nTypeError: super(type, obj): obj must be an instance or subtype of type\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/RPi-Distro/python-gpiozero/issues/comments/449758923","html_url":"https://github.com/RPi-Distro/python-gpiozero/issues/700#issuecomment-449758923","issue_url":"https://api.github.com/repos/RPi-Distro/python-gpiozero/issues/700","id":449758923,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0OTc1ODkyMw==","user":{"login":"lurch","id":476186,"node_id":"MDQ6VXNlcjQ3NjE4Ng==","avatar_url":"https://avatars2.githubusercontent.com/u/476186?v=4","gravatar_id":"","url":"https://api.github.com/users/lurch","html_url":"https://github.com/lurch","followers_url":"https://api.github.com/users/lurch/followers","following_url":"https://api.github.com/users/lurch/following{/other_user}","gists_url":"https://api.github.com/users/lurch/gists{/gist_id}","starred_url":"https://api.github.com/users/lurch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lurch/subscriptions","organizations_url":"https://api.github.com/users/lurch/orgs","repos_url":"https://api.github.com/users/lurch/repos","events_url":"https://api.github.com/users/lurch/events{/privacy}","received_events_url":"https://api.github.com/users/lurch/received_events","type":"User","site_admin":false},"created_at":"2018-12-24T17:49:02Z","updated_at":"2018-12-24T17:49:02Z","author_association":"CONTRIBUTOR","body":"Without being able to run your non-working code, it'll probably be impossible to say for sure what was going wrong?"}}
{"actor":{"display_login":"lurch"}}