Which exceptions do you want to catch here? Distutils will (afaik) catch IOErrors from trying to open files that don't exist, which leaves only the exception raised in the line above and maybe something from babel?