reddit-place-script-2022 icon indicating copy to clipboard operation
reddit-place-script-2022 copied to clipboard

[BUG] 'NoneType' object has no attribute 'contents'

Open jeffro256 opened this issue 3 years ago • 3 comments
trafficstars

Bug Report Form

Checklist

  • [x] I am using the latest version of the code.
  • [x] I am absolutely sure I read the README in its entirety.
  • [x] I have made sure this is not a duplicate issue.
  • [x] I have filled out this form correctly.

Describe the bug

On startup, authentication is successful, but I get the following error message:

Traceback (most recent call last):
  File "/usr/lib/python3.8/threading.py", line 932, in _bootstrap_inner
    self.run()
  File "/usr/lib/python3.8/threading.py", line 870, in run
    self._target(*self._args, **self._kwargs)
  File "main.py", line 545, in task
    BeautifulSoup(r.content, features="html.parser")
AttributeError: 'NoneType' object has no attribute 'contents'

To Reproduce

Steps to trigger the bug:

  • Run the code

Expected behavior

To start up with error and place tiles

Additional context

I'm using reddit old, don't know if that has anything to do with it

jeffro256 avatar Apr 03 '22 15:04 jeffro256

it looks like the code didn't have time to get the website request in time so it looks like its a slow network issue so just try running it until it works

Risewill23 avatar Apr 03 '22 16:04 Risewill23

It never succeeds and my old code works every time

JarradTait avatar Apr 03 '22 16:04 JarradTait

Try running this with the updated script. Are you still running into this issue?

Skyline-9 avatar Apr 04 '22 23:04 Skyline-9