def set_value(self, pymux, value):
try:<EOL><INDENT>value = int(value)<EOL>if value < <NUM_LIT:0>:<EOL><INDENT>raise ValueError<EOL><DEDENT><DEDENT>except ValueError:<EOL><INDENT>raise SetOptionError('<STR_LIT>')<EOL><DEDENT>else:<EOL><INDENT>setattr(pymux, self.attribute_name, value)<EOL><DEDENT>
Take a string, and return an integer. Raise SetOptionError when the
given text does not parse to a positive integer.