def get_clan(self):
try:<EOL><INDENT>return self.client.get_clan(self.clan.tag)<EOL><DEDENT>except AttributeError:<EOL><INDENT>try:<EOL><INDENT>return self.client.get_clan(self.tag)<EOL><DEDENT>except AttributeError:<EOL><INDENT>raise ValueError('<STR_LIT>')<EOL><DEDENT><DEDENT>
(a)sync function to return clan.