'Call pref observers for the given pref
@param name {str} The preference name'

def _notify_pref_observers(self, name):

    for callback in tuple(self._observers.get(name, [])):
        try:
            callback(self, name)
        except:
            log.exception("error    in    pref    observer    for    pref    '%s'    change", name)
