enkore / potstats2

pOTStats 2.0, ein pOTsches Informationsportal
https://potstats2.enkore.de
European Union Public License 1.2
4 stars 1 forks source link

Crawler: Bug im Forum macht <content/> #24

Closed enkore closed 6 years ago

enkore commented 6 years ago

http://forum.mods.de/bb/thread.php?TID=214930&PID=1247728946#reply_1247728946

-> "0" als message -> <message>\n\t\t\t<edited count="0" />\n\t\t\t<content />\n\t\t\t<title />\n\t\t</message>

->

  File "/home/potstats2/app/_venv/lib/python3.6/site-packages/potstats2/worldeater/main.py", line 94, in merge_pages
    return merge_posts(session, dbthread, api.iter_thread(dbthread.tid, start_page))
  File "/home/potstats2/app/_venv/lib/python3.6/site-packages/potstats2/worldeater/main.py", line 75, in merge_posts
    dbpost.content_length = len(post_content.content)
TypeError: object of type 'NoneType' has no len()
enkore commented 6 years ago

Wetten, dass da sowas wie

$content = xml.element($message, "content")
if ($post["content"] && (!$post.hidden || $user.mod)) {
   $content.text = $post["content"]
}

im bb-Code steht?

enkore commented 6 years ago

70b9649