def get_errors(self):
result = []<EOL>while not self.errors.empty():  <EOL><INDENT>try:<EOL><INDENT>e = self.errors.get(False)<EOL>result.append(e)<EOL><DEDENT>except self.errors.Empty:<EOL><INDENT>continue<EOL><DEDENT>self.errors.task_done()<EOL><DEDENT>return result<EOL>
Return any errors which have occurred.