Exception in thread Thread-15260:
Traceback (most recent call last):
File "/opt/homebrew/Cellar/python@3.9/3.9.9/Frameworks/Python.framework/Versions/3.9/lib/python3.9/threading.py", line 973, in _bootstrap_inner
self.run()
File "/opt/homebrew/Cellar/python@3.9/3.9.9/Frameworks/Python.framework/Versions/3.9/lib/python3.9/threading.py", line 910, in run
self._target(*self._args, **self._kwargs)
File "/Users/german/Code/Python/YL2 Projects/Yandex2/gameplay/race/renderer.py", line 156, in remove_background_cars
if car.rect.y > self.screen.get_height():
AttributeError: 'Vehicle' object has no attribute 'rect'
Exception in thread Thread-15260: Traceback (most recent call last): File "/opt/homebrew/Cellar/python@3.9/3.9.9/Frameworks/Python.framework/Versions/3.9/lib/python3.9/threading.py", line 973, in _bootstrap_inner self.run() File "/opt/homebrew/Cellar/python@3.9/3.9.9/Frameworks/Python.framework/Versions/3.9/lib/python3.9/threading.py", line 910, in run self._target(*self._args, **self._kwargs) File "/Users/german/Code/Python/YL2 Projects/Yandex2/gameplay/race/renderer.py", line 156, in remove_background_cars if car.rect.y > self.screen.get_height(): AttributeError: 'Vehicle' object has no attribute 'rect'