germanivanov0719 / Racing

My 2nd YL project this year
0 stars 0 forks source link

Error in remove_background_cars() thread #26

Closed germanivanov0719 closed 2 years ago

germanivanov0719 commented 2 years ago

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'