def set_division(self, division):
try:<EOL><INDENT>division = int(division)<EOL><DEDENT>except (TypeError, ValueError):<EOL><INDENT>raise V1DivisionError('<STR_LIT>' %<EOL>(division,))<EOL><DEDENT>urlbase = '<STR_LIT>' % (division,)<EOL>resource = urljoin(<EOL>urlbase,<EOL>"<STR_LIT>")<EOL>try:<EOL><INDENT>self.rest(GET(resource))<EOL><DEDENT>except AssertionError:<EOL><INDENT>raise V1DivisionError('<STR_LIT>' %<EOL>(division,))<EOL><DEDENT>self.storage.set_division(division)<EOL>
Select the "current" division that we'll be working on/with.