CopterExpress / clever-show

Software for making the drone show with 🍀
GNU General Public License v3.0
76 stars 42 forks source link

Add check for animation file #19

Closed goldarte closed 5 years ago

goldarte commented 5 years ago

If there is no animation file on copter, it emits next exception: Starting animation! Animation thread activated Exception in thread Thread-8: Traceback (most recent call last): File "/usr/lib/python2.7/threading.py", line 801, in __bootstrap_inner self.run() File "/usr/lib/python2.7/threading.py", line 754, in run self.target(*self.args, **self.__kwargs) File "client.py", line 144, in animation_player frames = play_animation.read_animation_file() File "/home/pi/CleverSwarm/Drone/play_animation.py", line 43, in read_animation_file with open(filepath) as animation_file: IOError: [Errno 2] No such file or directory: 'animation.csv'