code: def saveSettings(self):
          
          try:
              self.saveProfile()
          except Exception as ex:
              # Continue, even if saving the settings fails.
              logger.warn(ex)
              if DEBUGGING:
                  raise
          finally:
              self._settingsSaved = True
docs: Saves the persistent settings. Only saves the profile.