def correct_ha_lum_for_dust(obs_luminosity, attenuation):
    """Corrects observed luminsoity for attenuation
    
    Parameters:
    obs_luminosity (float): Observed luminosity, erg/s
    attenuation (float): Amount of aattenuation    
    
    Returns:
    int_luminosity (float): Intrinsic luminosity
    """
    int_luminosity = obs_luminosity / (10**(-0.4 * attenuation))
    return int_luminosity