Advertisement
yehchge

推文較長時,分兩次, 第二次偶而會出錯

Jan 14th, 2025 (edited)
32
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.71 KB | Software | 0 0
  1. [01.14 16:21:09][PyPtt][INFO] PyPtt v 1.2.14 由 CodingMan 開發
  2. [01.14 16:21:09][PyPtt][INFO] PyPtt 初始化
  3. [01.14 16:21:09][PyPtt][INFO] 設定連線模式 ... WebSocket
  4. [01.14 16:21:09][PyPtt][INFO] 設定語言模組 ... 繁體中文
  5. [01.14 16:21:09][PyPtt][INFO] 設定連線主機 ... 批踢踢
  6. [01.14 16:21:09][PyPtt][INFO] PyPtt 初始化 ... 完成
  7. [01.14 16:21:09][PyPtt][INFO] 目前版本 1.2.14
  8. [01.14 16:21:09][PyPtt][INFO] 登入帳號 ??????????
  9. [01.14 16:21:09][PyPtt][INFO] 登入 ... 成功
  10. [01.14 16:21:09][PyPtt][INFO] 取得看板資訊 facelift
  11. [01.14 16:21:10][PyPtt][INFO] 取得看板資訊 facelift ... 成功
  12. [01.14 16:21:10][PyPtt][INFO] 推文
  13. [01.14 16:21:10][PyPtt][INFO] 推文 ... 成功
  14. [01.14 16:21:10][PyPtt][INFO] 推文
  15. [01.14 16:21:10][PyPtt][INFO] 因禁止快速連續推文,所以等待五秒
  16. 登入成功
  17. Traceback (most recent call last):
  18. File "push_ptt_article.py", line 122, in <module>
  19. main()
  20. File "push_ptt_article.py", line 116, in main
  21. push(PTTBot, BoardKey, Aid, ContentType, Content)
  22. File "push_ptt_article.py", line 85, in push
  23. PTTBot.comment(board=Board, comment_type=PttType, content=Content, aid=Aid)
  24. File "/usr/local/lib/python3.8/dist-packages/PyPtt/PTT.py", line 496, in comment
  25. _api_comment.comment(self, board, comment_type, content, aid, index)
  26. File "/usr/local/lib/python3.8/dist-packages/PyPtt/_api_comment.py", line 204, in comment
  27. _comment(api, board, push_type, comment, post_aid=post_aid, post_index=post_index)
  28. File "/usr/local/lib/python3.8/dist-packages/PyPtt/_api_comment.py", line 64, in _comment
  29. raise exceptions.UnknownError('unknown error in comment')
  30. PyPtt.exceptions.UnknownError: unknown error in comment
  31.  
Tags: message
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement