code: def _set_int(self, commands, name):
          
          if name in commands:
              try:
                  value = int(commands[name])
                  setattr(self, name, value)
              except ValueError:
                  pass
docs: set integer value from commands