{"action":"created","issue":{"url":"https://api.github.com/repos/projectgus/yamdwe/issues/30","labels_url":"https://api.github.com/repos/projectgus/yamdwe/issues/30/labels{/name}","comments_url":"https://api.github.com/repos/projectgus/yamdwe/issues/30/comments","events_url":"https://api.github.com/repos/projectgus/yamdwe/issues/30/events","html_url":"https://github.com/projectgus/yamdwe/issues/30","id":84058291,"number":30,"title":"TypeError: expected string or buffer in \"re.py\", line 141, in match","user":{"login":"Marty-Macfly","id":12715929,"avatar_url":"https://avatars.githubusercontent.com/u/12715929?v=3","gravatar_id":"","url":"https://api.github.com/users/Marty-Macfly","html_url":"https://github.com/Marty-Macfly","followers_url":"https://api.github.com/users/Marty-Macfly/followers","following_url":"https://api.github.com/users/Marty-Macfly/following{/other_user}","gists_url":"https://api.github.com/users/Marty-Macfly/gists{/gist_id}","starred_url":"https://api.github.com/users/Marty-Macfly/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Marty-Macfly/subscriptions","organizations_url":"https://api.github.com/users/Marty-Macfly/orgs","repos_url":"https://api.github.com/users/Marty-Macfly/repos","events_url":"https://api.github.com/users/Marty-Macfly/events{/privacy}","received_events_url":"https://api.github.com/users/Marty-Macfly/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-06-02T14:50:22Z","updated_at":"2015-07-26T11:44:14Z","closed_at":"2015-07-26T11:39:18Z","body":"Hello,\r\n\r\nI tried to launch yamdwe, on a mediawiki 1.1.16 and i've got the following stack trace:\r\n\r\n```\r\nTraceback (most recent call last):\r\n  File \"./yamdwe/yamdwe.py\", line 93, in <module>\r\n    main()\r\n  File \"./yamdwe/yamdwe.py\", line 61, in main\r\n    exporter.write_pages(pages)\r\n  File \"yamdwe/dokuwiki.py\", line 41, in write_pages\r\n    self._convert_page(page)\r\n  File \"yamdwe/dokuwiki.py\", line 97, in _convert_page\r\n    content = wikicontent.convert_pagecontent(full_title, revision[\"*\"])\r\n  File \"yamdwe/wikicontent.py\", line 68, in convert_pagecontent\r\n    return convert(root, context, False)\r\n  File \"yamdwe/visitor.py\", line 142, in __call__\r\n    return self.call_internal(lambda f:f, args, kw)\r\n  File \"yamdwe/visitor.py\", line 165, in call_internal\r\n    result = func_modifier(self.registry[t])(*args, **kw)\r\n  File \"yamdwe/wikicontent.py\", line 85, in convert\r\n    return convert_children(node, context)\r\n  File \"yamdwe/wikicontent.py\", line 75, in convert_children\r\n    res = convert(child, context, result.endswith(\"\\n\"))\r\n  File \"yamdwe/visitor.py\", line 142, in __call__\r\n    return self.call_internal(lambda f:f, args, kw)\r\n  File \"yamdwe/visitor.py\", line 165, in call_internal\r\n    result = func_modifier(self.registry[t])(*args, **kw)\r\n  File \"yamdwe/wikicontent.py\", line 114, in convert\r\n    print(\"Unknown tagname %s\" % section.tagname)\r\n  File \"yamdwe/wikicontent.py\", line 75, in convert_children\r\n    res = convert(child, context, result.endswith(\"\\n\"))\r\n  File \"yamdwe/visitor.py\", line 142, in __call__\r\n    return self.call_internal(lambda f:f, args, kw)\r\n  File \"yamdwe/visitor.py\", line 165, in call_internal\r\n    result = func_modifier(self.registry[t])(*args, **kw)\r\n  File \"yamdwe/wikicontent.py\", line 260, in convert\r\n    if node.__class__ != Node:\r\n  File \"yamdwe/wikicontent.py\", line 75, in convert_children\r\n    res = convert(child, context, result.endswith(\"\\n\"))\r\n  File \"yamdwe/visitor.py\", line 142, in __call__\r\n    return self.call_internal(lambda f:f, args, kw)\r\n  File \"yamdwe/visitor.py\", line 165, in call_internal\r\n    result = func_modifier(self.registry[t])(*args, **kw)\r\n  File \"yamdwe/wikicontent.py\", line 89, in convert\r\n    return convert_children(node, context) + \"\\n\"\r\n  File \"yamdwe/wikicontent.py\", line 75, in convert_children\r\n    res = convert(child, context, result.endswith(\"\\n\"))\r\n  File \"yamdwe/visitor.py\", line 142, in __call__\r\n    return self.call_internal(lambda f:f, args, kw)\r\n  File \"yamdwe/visitor.py\", line 165, in call_internal\r\n    result = func_modifier(self.registry[t])(*args, **kw)\r\n  File \"yamdwe/wikicontent.py\", line 94, in convert\r\n    if text._text is NoneType:\r\n  File \"env/lib64/python2.7/re.py\", line 141, in match\r\n    return _compile(pattern, flags).match(string)\r\nTypeError: expected string or buffer\r\n```\r\n\r\nI had some debug to the code to find out the origin of that error and it's producing when `text._text` is `None`."},"comment":{"url":"https://api.github.com/repos/projectgus/yamdwe/issues/comments/124974705","html_url":"https://github.com/projectgus/yamdwe/issues/30#issuecomment-124974705","issue_url":"https://api.github.com/repos/projectgus/yamdwe/issues/30","id":124974705,"user":{"login":"projectgus","id":205573,"avatar_url":"https://avatars.githubusercontent.com/u/205573?v=3","gravatar_id":"","url":"https://api.github.com/users/projectgus","html_url":"https://github.com/projectgus","followers_url":"https://api.github.com/users/projectgus/followers","following_url":"https://api.github.com/users/projectgus/following{/other_user}","gists_url":"https://api.github.com/users/projectgus/gists{/gist_id}","starred_url":"https://api.github.com/users/projectgus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/projectgus/subscriptions","organizations_url":"https://api.github.com/users/projectgus/orgs","repos_url":"https://api.github.com/users/projectgus/repos","events_url":"https://api.github.com/users/projectgus/events{/privacy}","received_events_url":"https://api.github.com/users/projectgus/received_events","type":"User","site_admin":false},"created_at":"2015-07-26T11:44:14Z","updated_at":"2015-07-26T11:44:14Z","body":"PS Thanks @lordofbikes for the excellent test case and sample good/bad content. Made verifying the cause and fix very simple!"}}