def _handle_debug(config, debug_enabled):
    """ Only modify debug if it was specified.
    """
    if debug_enabled is None:
        return
    elif debug_enabled:
        config.debug_mode = True
    else:
        config.debug_mode = False
