Add exception handling to WebP converter python script