PRAW返回404 HTTP异常

时间:2019-02-10 03:09:23

标签: python python-3.x praw

我以前从未遇到过代码麻烦,尝试读取收件箱时会发生此错误。

跟踪如下:

Traceback (most recent call last):
  File "run1.py", line 711, in <module>
    run_bot(r, comments_replied_to)
  File "run1.py", line 697, in run_bot
    readinbox()
  File "run1.py", line 58, in readinbox
    mods = r.subreddit(message.body).moderator()
  File "/usr/local/lib/python3.5/dist-packages/praw/models/reddit/subreddit.py", line 1723, in __call__
    return self.subreddit._reddit.get(url, params=params)
  File "/usr/local/lib/python3.5/dist-packages/praw/reddit.py", line 408, in get
    data = self.request('GET', path, params=params)
  File "/usr/local/lib/python3.5/dist-packages/praw/reddit.py", line 534, in request
params=params)
  File "/usr/local/lib/python3.5/dist-packages/prawcore/sessions.py", line 185, in request
params=params, url=url)
  File "/usr/local/lib/python3.5/dist-packages/prawcore/sessions.py", line 130, in _request_with_retries
    raise self.STATUS_EXCEPTIONS[response.status_code](response)
prawcore.exceptions.NotFound: received 404 HTTP response

PRAW / Reddit是否有问题?

0 个答案:

没有答案