kootenpv / brightml

Convenient Machine-Learned Auto Brightness (Linux)
MIT License
120 stars 4 forks source link

Generically handle all exceptions in get_window() #11

Closed xorgy closed 7 years ago

xorgy commented 7 years ago

ALL of the intermediate expressions or statements in get_window() have the potential to raise exceptions, none of which are interesting or should be handled any differently.

I figure it serves us better to simply catch all of them, return None, and shut up.

Resolves #10