{"action":"opened","issue":{"url":"https://api.github.com/repos/Roromis/Lalf-Forumactif/issues/49","repository_url":"https://api.github.com/repos/Roromis/Lalf-Forumactif","labels_url":"https://api.github.com/repos/Roromis/Lalf-Forumactif/issues/49/labels{/name}","comments_url":"https://api.github.com/repos/Roromis/Lalf-Forumactif/issues/49/comments","events_url":"https://api.github.com/repos/Roromis/Lalf-Forumactif/issues/49/events","html_url":"https://github.com/Roromis/Lalf-Forumactif/issues/49","id":146670254,"number":49,"title":"ValueError: Invalid IPv6 URL","user":{"login":"ArnoHolo","id":6376958,"avatar_url":"https://avatars.githubusercontent.com/u/6376958?v=3","gravatar_id":"","url":"https://api.github.com/users/ArnoHolo","html_url":"https://github.com/ArnoHolo","followers_url":"https://api.github.com/users/ArnoHolo/followers","following_url":"https://api.github.com/users/ArnoHolo/following{/other_user}","gists_url":"https://api.github.com/users/ArnoHolo/gists{/gist_id}","starred_url":"https://api.github.com/users/ArnoHolo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ArnoHolo/subscriptions","organizations_url":"https://api.github.com/users/ArnoHolo/orgs","repos_url":"https://api.github.com/users/ArnoHolo/repos","events_url":"https://api.github.com/users/ArnoHolo/events{/privacy}","received_events_url":"https://api.github.com/users/ArnoHolo/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-04-07T16:06:03Z","updated_at":"2016-04-07T16:06:03Z","closed_at":null,"body":"J'ai le bug suivant :\r\n\r\n```\r\nTraceback (most recent call last):\r\n  File \"lalf.py\", line 22, in <module>\r\n    main()\r\n  File \"/Users/ad/Workspace/Lalf-Forumactif-master/lalf/__init__.py\", line 77, in main\r\n    bb.dump(sqlfile)\r\n  File \"/Users/ad/Workspace/Lalf-Forumactif-master/lalf/node.py\", line 149, in dump\r\n    child.dump(sqlfile)\r\n  File \"/Users/ad/Workspace/Lalf-Forumactif-master/lalf/node.py\", line 149, in dump\r\n    child.dump(sqlfile)\r\n  File \"/Users/ad/Workspace/Lalf-Forumactif-master/lalf/node.py\", line 149, in dump\r\n    child.dump(sqlfile)\r\n  File \"/Users/ad/Workspace/Lalf-Forumactif-master/lalf/node.py\", line 149, in dump\r\n    child.dump(sqlfile)\r\n  File \"/Users/ad/Workspace/Lalf-Forumactif-master/lalf/node.py\", line 149, in dump\r\n    child.dump(sqlfile)\r\n  File \"/Users/ad/Workspace/Lalf-Forumactif-master/lalf/node.py\", line 149, in dump\r\n    child.dump(sqlfile)\r\n  File \"/Users/ad/Workspace/Lalf-Forumactif-master/lalf/node.py\", line 146, in dump\r\n    self._dump_(sqlfile)\r\n  File \"/Users/ad/Workspace/Lalf-Forumactif-master/lalf/posts.py\", line 68, in _dump_\r\n    post = parser.get_post()\r\n  File \"/Users/ad/Workspace/Lalf-Forumactif-master/lalf/htmltobbcode.py\", line 228, in get_post\r\n    self.root_node.get_bbcode(fileobj, self.bb, uid)\r\n  File \"/Users/ad/Workspace/Lalf-Forumactif-master/lalf/htmltobbcode.py\", line 139, in get_bbcode\r\n    child.get_bbcode(fileobj, bb, uid)\r\n  File \"/Users/ad/Workspace/Lalf-Forumactif-master/lalf/htmltobbcode.py\", line 388, in get_bbcode\r\n    BlockTagNode.get_bbcode(self, fileobj, bb, uid)\r\n  File \"/Users/ad/Workspace/Lalf-Forumactif-master/lalf/htmltobbcode.py\", line 356, in get_bbcode\r\n    InlineTagNode.get_bbcode(self, fileobj, bb, uid)\r\n  File \"/Users/ad/Workspace/Lalf-Forumactif-master/lalf/htmltobbcode.py\", line 345, in get_bbcode\r\n    Node.get_bbcode(self, fileobj, bb, uid)\r\n  File \"/Users/ad/Workspace/Lalf-Forumactif-master/lalf/htmltobbcode.py\", line 139, in get_bbcode\r\n    child.get_bbcode(fileobj, bb, uid)\r\n  File \"/Users/ad/Workspace/Lalf-Forumactif-master/lalf/htmltobbcode.py\", line 458, in get_bbcode\r\n    url = process_link(bb, self.url)\r\n  File \"/Users/ad/Workspace/Lalf-Forumactif-master/lalf/htmltobbcode.py\", line 79, in process_link\r\n    scheme, netloc, path, params, query, fragment = urlparse(url)\r\n  File \"/Users/ad/anaconda3/lib/python3.5/urllib/parse.py\", line 295, in urlparse\r\n    splitresult = urlsplit(url, scheme, allow_fragments)\r\n  File \"/Users/ad/anaconda3/lib/python3.5/urllib/parse.py\", line 345, in urlsplit\r\n    raise ValueError(\"Invalid IPv6 URL\")\r\nValueError: Invalid IPv6 URL\r\n```\r\n\r\nEn regardant dans le fichier debug.log, c'est lors de l'exportation d'un message qui contient les balises suivantes :\r\n```\r\n[url]www.url.com[/url]\r\n\r\n[url=www.url.com]bla bla bla[/url]\r\n```\r\n\r\nIl faudrait donc l'ignorer ou le prendre en compte. Merci !"}}