Bug ID number that caused this error

def id(self):
        """ Bug ID number that caused this error """
        m = re.match(r'You are not authorized to access bug #(\d+)',
                     self.message)
        return m.group(1)