Nit: do you have to `str` ahead of time? The string formatting in ConfigurationError could handle that.