Advertisement
yehchge

PyPtt get_post(boardkey, aid=Aid) Error

Jun 19th, 2025
521
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.71 KB | None | 0 0
  1.     [50] => [06.19 13:42:13][PyPtt][INFO] 推文 ... 成功
  2.     [51] => Traceback (most recent call last):
  3.     [52] =>   File "push_ptt_article.py", line 114, in verify
  4.     [53] =>     post_info = PTTBot.get_post(BoardKey, aid=Aid)
  5.     [54] =>   File "/usr/local/lib/python3.8/dist-packages/PyPtt/PTT.py", line 349, in get_post
  6.     [55] =>     return _api_get_post.get_post(
  7.     [56] =>   File "/usr/local/lib/python3.8/dist-packages/PyPtt/_api_get_post.py", line 53, in get_post
  8.     [57] =>     if index > 0 and aid is not None:
  9.     [58] => TypeError: '>' not supported between instances of 'NoneType' and 'int'
  10.     [59] => [06.19 13:42:13][PyPtt][INFO] 登出
  11.     [60] => [06.19 13:42:13][PyPtt][INFO] 登出 ... 成功
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement