Advertisement
yehchge

PyPtt get_post 失敗

Jul 3rd, 2025
131
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.     [0] => [07.03 16:18:06][PyPtt][INFO] PyPtt v 1.2.14 由 CodingMan 開發
  2.     [1] => [07.03 16:18:06][PyPtt][INFO] PyPtt 初始化
  3.     [2] => [07.03 16:18:06][PyPtt][INFO] 設定連線模式 ... WebSocket
  4.     [3] => [07.03 16:18:06][PyPtt][INFO] 設定語言模組 ... 繁體中文
  5.     [4] => [07.03 16:18:06][PyPtt][INFO] 設定連線主機 ... 批踢踢
  6.     [5] => [07.03 16:18:06][PyPtt][INFO] PyPtt 初始化 ... 完成
  7.     [6] => [07.03 16:18:06][PyPtt][INFO] 目前版本 1.2.14
  8.     [7] => [07.03 16:18:06][PyPtt][INFO] 登入帳號 cavaorama
  9.     [8] => [07.03 16:18:06][PyPtt][INFO] 登入 ... 成功
  10.     [9] => [07.03 16:18:06][PyPtt][INFO] 取得看板資訊 facelift
  11.     [10] => [07.03 16:18:06][PyPtt][INFO] 取得看板資訊 facelift ... 成功
  12.     [11] => [07.03 16:18:06][PyPtt][INFO] 推文
  13.     [12] => [07.03 16:18:07][PyPtt][INFO] 推文 ... 成功
  14.     [13] => Error: 驗證推文失敗: '>' not supported between instances of 'NoneType' and 'int'
  15.     [14] => Traceback (most recent call last):
  16.     [15] =>   File "push_ptt_article.py", line 129, in verify
  17.     [16] =>     post_info = PTTBot.get_post(BoardKey, aid=Aid)
  18.     [17] =>   File "/usr/local/lib/python3.8/dist-packages/PyPtt/PTT.py", line 349, in get_post
  19.     [18] =>     return _api_get_post.get_post(
  20.     [19] =>   File "/usr/local/lib/python3.8/dist-packages/PyPtt/_api_get_post.py", line 53, in get_post
  21.     [20] =>     if index > 0 and aid is not None:
  22.     [21] => TypeError: '>' not supported between instances of 'NoneType' and 'int'
  23.     [22] => Error: 查無推文.
  24.     [23] => [07.03 16:18:14][PyPtt][INFO] 登出
  25.     [24] => [07.03 16:18:14][PyPtt][INFO] 登出 ... 成功
  26.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement