germanivanov0719 / Racing

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

Unknown problem in threads when exit program #22

Open logeval opened 2 years ago

logeval commented 2 years ago

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'

germanivanov0719 commented 2 years ago

Unable to replicate this problem

germanivanov0719 commented 2 years ago

Might no longer be present in 0.7.1 and higher, but i cannot be sure since it has never occurred in my rans