Exception in thread Thread-5036:
Traceback (most recent call last):
File "C:\Users\login\AppData\Local\Programs\Python\Python39\lib\threading.py", line 954, in _bootstrap_inner
self.run()
File "C:\Users\login\AppData\Local\Programs\Python\Python39\lib\threading.py", line 892, in run
self._target(*self._args, **self._kwargs)
File "C:\GitHub\Yandex2\gameplay\race\renderer.py", line 147, in remove_background_cars
if car.rect.y > self.screen.get_height():
AttributeError: 'Vehicle' object has no attribute 'rect'
Exception in thread Thread-5036: Traceback (most recent call last): File "C:\Users\login\AppData\Local\Programs\Python\Python39\lib\threading.py", line 954, in _bootstrap_inner self.run() File "C:\Users\login\AppData\Local\Programs\Python\Python39\lib\threading.py", line 892, in run self._target(*self._args, **self._kwargs) File "C:\GitHub\Yandex2\gameplay\race\renderer.py", line 147, in remove_background_cars if car.rect.y > self.screen.get_height(): AttributeError: 'Vehicle' object has no attribute 'rect'