MalcolmWilliams / Laser-Writer

A laser writer that uses mirror galvonometers to control a laser beam and write tweets on distant objects
http://rekon.xyz/Laser-Writer/
Other
0 stars 0 forks source link

Sanitise tweets #5

Closed MalcolmWilliams closed 7 years ago

MalcolmWilliams commented 7 years ago

Tweets that have unrecognised ascii characters crash the program. need to strip them out.

MalcolmWilliams commented 7 years ago

This line in the main program fixes it message = message.encode('ascii', 'ignore') #openlase library can only take ascii data