{"action":"created","issue":{"url":"https://api.github.com/repos/ahupp/python-magic/issues/72","labels_url":"https://api.github.com/repos/ahupp/python-magic/issues/72/labels{/name}","comments_url":"https://api.github.com/repos/ahupp/python-magic/issues/72/comments","events_url":"https://api.github.com/repos/ahupp/python-magic/issues/72/events","html_url":"https://github.com/ahupp/python-magic/issues/72","id":57819155,"number":72,"title":"magic.MagicException: line 60: regex error 16","user":{"login":"cr","id":170331,"avatar_url":"https://avatars.githubusercontent.com/u/170331?v=3","gravatar_id":"","url":"https://api.github.com/users/cr","html_url":"https://github.com/cr","followers_url":"https://api.github.com/users/cr/followers","following_url":"https://api.github.com/users/cr/following{/other_user}","gists_url":"https://api.github.com/users/cr/gists{/gist_id}","starred_url":"https://api.github.com/users/cr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cr/subscriptions","organizations_url":"https://api.github.com/users/cr/orgs","repos_url":"https://api.github.com/users/cr/repos","events_url":"https://api.github.com/users/cr/events{/privacy}","received_events_url":"https://api.github.com/users/cr/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-02-16T15:43:57Z","updated_at":"2015-02-18T16:56:23Z","closed_at":"2015-02-18T16:56:23Z","body":"I'm running python-magic==0.4.6 on a large dataset with ```mime=True```, and one .html file triggered the following MagicException:\r\n```\r\n  File \"/.../lib/python2.7/site-packages/magic.py\", line 66, in from_buffer\r\n    return magic_buffer(self.cookie, buf)\r\n  File \"/.../lib/python2.7/site-packages/magic.py\", line 215, in magic_buffer\r\n    return _magic_buffer(cookie, buf, len(buf))\r\n  File \"/.../lib/python2.7/site-packages/magic.py\", line 168, in errorcheck_null\r\n    raise MagicException(err)\r\nmagic.MagicException: line 60: regex error 16 for `^\\s*except.*:', (invalid argument to regex routine)\r\n\r\n```"},"comment":{"url":"https://api.github.com/repos/ahupp/python-magic/issues/comments/74900850","html_url":"https://github.com/ahupp/python-magic/issues/72#issuecomment-74900850","issue_url":"https://api.github.com/repos/ahupp/python-magic/issues/72","id":74900850,"user":{"login":"ahupp","id":40594,"avatar_url":"https://avatars.githubusercontent.com/u/40594?v=3","gravatar_id":"","url":"https://api.github.com/users/ahupp","html_url":"https://github.com/ahupp","followers_url":"https://api.github.com/users/ahupp/followers","following_url":"https://api.github.com/users/ahupp/following{/other_user}","gists_url":"https://api.github.com/users/ahupp/gists{/gist_id}","starred_url":"https://api.github.com/users/ahupp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ahupp/subscriptions","organizations_url":"https://api.github.com/users/ahupp/orgs","repos_url":"https://api.github.com/users/ahupp/repos","events_url":"https://api.github.com/users/ahupp/events{/privacy}","received_events_url":"https://api.github.com/users/ahupp/received_events","type":"User","site_admin":false},"created_at":"2015-02-18T16:56:23Z","updated_at":"2015-02-18T16:56:23Z","body":"This looks like an issue in your underlying libmagic implementation, which python-magic uses.  I'd suggested debugging there, and/or reporting to that team.  Sorry I can't be more help."}}