Changed docstring: ".repy" --> ".r2py"
Preinitialize `client_id` variable used in an except clause.

It should be initialized inside the `try` block, but obviously, that
can fail, and we don't want the error message to crash the program.