Advertisement
yehchge

aid is not valid

Jan 15th, 2025
23
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.64 KB | None | 0 0
  1. [01.15 15:36:06][PyPtt][INFO] PyPtt v 1.2.14 由 CodingMan 開發
  2. [01.15 15:36:06][PyPtt][INFO] PyPtt 初始化
  3. [01.15 15:36:06][PyPtt][INFO] 設定連線模式 ... WebSocket
  4. [01.15 15:36:06][PyPtt][INFO] 設定語言模組 ... 繁體中文
  5. [01.15 15:36:06][PyPtt][INFO] 設定連線主機 ... 批踢踢
  6. [01.15 15:36:06][PyPtt][INFO] PyPtt 初始化 ... 完成
  7. [01.15 15:36:06][PyPtt][INFO] 目前版本 1.2.14
  8. [01.15 15:36:06][PyPtt][INFO] 登入帳號 ??????????
  9. [01.15 15:36:07][PyPtt][INFO] 登入 ... 成功
  10. [01.15 15:36:07][PyPtt][INFO] 取得看板資訊 facelift
  11. [01.15 15:36:07][PyPtt][INFO] 取得看板資訊 facelift ... 成功
  12. [01.15 15:36:07][PyPtt][INFO] 推文
  13. 登入成功
  14. Traceback (most recent call last):
  15. File "push_ptt_article.py", line 126, in <module>
  16. main()
  17. File "push_ptt_article.py", line 120, in main
  18. push(PTTBot, BoardKey, Aid, ContentType, Content)
  19. File "push_ptt_article.py", line 89, in push
  20. PTTBot.comment(board=Board, comment_type=PttType, content=Content, aid=Aid)
  21. File "/usr/local/lib/python3.8/dist-packages/PyPtt/PTT.py", line 496, in comment
  22. _api_comment.comment(self, board, comment_type, content, aid, index)
  23. File "/usr/local/lib/python3.8/dist-packages/PyPtt/_api_comment.py", line 204, in comment
  24. _comment(api, board, push_type, comment, post_aid=post_aid, post_index=post_index)
  25. File "/usr/local/lib/python3.8/dist-packages/PyPtt/_api_comment.py", line 34, in _comment
  26. cmd_list.append(lib_util.check_aid(post_aid))
  27. File "/usr/local/lib/python3.8/dist-packages/PyPtt/lib_util.py", line 160, in check_aid
  28. raise ValueError('aid is not valid')
  29. ValueError: aid is not valid
Tags: message
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement