def _get_error_code(self, e):
try:<EOL><INDENT>matches = self.error_code_pattern.match(str(e))<EOL>code = int(matches.group(<NUM_LIT:0>))<EOL>return code<EOL><DEDENT>except ValueError:<EOL><INDENT>return e<EOL><DEDENT>
Extract error code from ftp exception