{"action":"created","issue":{"url":"https://api.github.com/repos/NiklasRosenstein/myo-python/issues/25","labels_url":"https://api.github.com/repos/NiklasRosenstein/myo-python/issues/25/labels{/name}","comments_url":"https://api.github.com/repos/NiklasRosenstein/myo-python/issues/25/comments","events_url":"https://api.github.com/repos/NiklasRosenstein/myo-python/issues/25/events","html_url":"https://github.com/NiklasRosenstein/myo-python/issues/25","id":99694802,"number":25,"title":"API throws runtime error due to invalid event type","user":{"login":"TomaszDBorusiak","id":10502667,"avatar_url":"https://avatars.githubusercontent.com/u/10502667?v=3","gravatar_id":"","url":"https://api.github.com/users/TomaszDBorusiak","html_url":"https://github.com/TomaszDBorusiak","followers_url":"https://api.github.com/users/TomaszDBorusiak/followers","following_url":"https://api.github.com/users/TomaszDBorusiak/following{/other_user}","gists_url":"https://api.github.com/users/TomaszDBorusiak/gists{/gist_id}","starred_url":"https://api.github.com/users/TomaszDBorusiak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TomaszDBorusiak/subscriptions","organizations_url":"https://api.github.com/users/TomaszDBorusiak/orgs","repos_url":"https://api.github.com/users/TomaszDBorusiak/repos","events_url":"https://api.github.com/users/TomaszDBorusiak/events{/privacy}","received_events_url":"https://api.github.com/users/TomaszDBorusiak/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/NiklasRosenstein/myo-python/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":{"login":"NiklasRosenstein","id":1318438,"avatar_url":"https://avatars.githubusercontent.com/u/1318438?v=3","gravatar_id":"","url":"https://api.github.com/users/NiklasRosenstein","html_url":"https://github.com/NiklasRosenstein","followers_url":"https://api.github.com/users/NiklasRosenstein/followers","following_url":"https://api.github.com/users/NiklasRosenstein/following{/other_user}","gists_url":"https://api.github.com/users/NiklasRosenstein/gists{/gist_id}","starred_url":"https://api.github.com/users/NiklasRosenstein/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NiklasRosenstein/subscriptions","organizations_url":"https://api.github.com/users/NiklasRosenstein/orgs","repos_url":"https://api.github.com/users/NiklasRosenstein/repos","events_url":"https://api.github.com/users/NiklasRosenstein/events{/privacy}","received_events_url":"https://api.github.com/users/NiklasRosenstein/received_events","type":"User","site_admin":false},"milestone":null,"comments":4,"created_at":"2015-08-07T17:39:59Z","updated_at":"2015-08-10T14:16:31Z","closed_at":null,"body":"Hi Niklas,\r\n\r\nThank you for providing a Python API for the Myo. I was working with the device for some time and noticed a weird behavior while using your API.\r\n\r\nWhen starting to connect to the armband I run into the problem that an invalid event type is registered causing a runtime error (as defined in the if statement in the file myo/__init__.py starting in line 324).\r\n\r\nI would get this event sometimes during the initial connection procedure or shortly after connecting and using the armband.\r\n\r\nAfter narrowing down the root cause for this behavior I added an additional check in the if statement that deals with invalid event types. This fixed the issue and everything runs stable.\r\n\r\nDo you or anybody else happen to have experienced anything like this before? If you want, I can of course share the details of my modification or make a pull request?\r\n\r\nThe environment I run is the following:\r\n\r\nMac OS X 10.10.4\r\nMyo Connect 0.15.0\r\n\r\nKind regards,\r\n\r\nTomek"},"comment":{"url":"https://api.github.com/repos/NiklasRosenstein/myo-python/issues/comments/129469751","html_url":"https://github.com/NiklasRosenstein/myo-python/issues/25#issuecomment-129469751","issue_url":"https://api.github.com/repos/NiklasRosenstein/myo-python/issues/25","id":129469751,"user":{"login":"NiklasRosenstein","id":1318438,"avatar_url":"https://avatars.githubusercontent.com/u/1318438?v=3","gravatar_id":"","url":"https://api.github.com/users/NiklasRosenstein","html_url":"https://github.com/NiklasRosenstein","followers_url":"https://api.github.com/users/NiklasRosenstein/followers","following_url":"https://api.github.com/users/NiklasRosenstein/following{/other_user}","gists_url":"https://api.github.com/users/NiklasRosenstein/gists{/gist_id}","starred_url":"https://api.github.com/users/NiklasRosenstein/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NiklasRosenstein/subscriptions","organizations_url":"https://api.github.com/users/NiklasRosenstein/orgs","repos_url":"https://api.github.com/users/NiklasRosenstein/repos","events_url":"https://api.github.com/users/NiklasRosenstein/events{/privacy}","received_events_url":"https://api.github.com/users/NiklasRosenstein/received_events","type":"User","site_admin":false},"created_at":"2015-08-10T14:16:31Z","updated_at":"2015-08-10T14:16:31Z","body":"Unfortunately I can't get my Myo to connect right now, so I can't work on this. :("}}