code: def check_config_sanity(self):
          
          is_sane = True
  
          # This extracts some properties which cannot be checked like "nick",
          # but it is definitely better than writing the property names as a
          # string literal.
          properties = [property_name for property_name, obj
                        in self.__class__.__dict__.items()
                        if isinstance(obj, property)]
  
          for property_name in properties:
              try:
                  getattr(self, property_name)
              except ValueError as e:
                  click.echo("✗ Config error on {0} - {1}".format(property_name, e))
                  is_sane = False
  
          return is_sane
docs: Checks if the given values in the config file are sane.