def __init__(self, msg="%r", error_code=None):
        if error_code is None:
            error_code = ctypes.GetLastError()
        description = ctypes.FormatError(error_code)
        try:
            formatted_msg = msg % description
        except TypeError:
            formatted_msg = msg
        super(WindowsCloudbaseInitException, self).__init__(formatted_msg)
dataset/ETHPy150Open openstack/cloudbase-init/cloudbaseinit/exception.py/WindowsCloudbaseInitException.__init__/original