def __err_handler(self, act, errno, callback=None, args=(), kwargs=None):
kwargs = kwargs or {}<EOL>errno = int(errno)<EOL>def err_handler_download():<EOL><INDENT>if errno == <NUM_LIT>:<EOL><INDENT>url = '<STR_LIT>'<EOL>self.session.get(url)<EOL><DEDENT>return<EOL><DEDENT>def err_handler_upload():<EOL><INDENT>return<EOL><DEDENT>def err_handler_generic():<EOL><INDENT>return<EOL><DEDENT>_act = {'<STR_LIT>': err_handler_download,<EOL>'<STR_LIT>': err_handler_upload,<EOL>'<STR_LIT>': err_handler_generic<EOL>}<EOL>if act not in _act:<EOL><INDENT>raise Exception('<STR_LIT>')<EOL><DEDENT>if callback:<EOL><INDENT>return callback(*args, **kwargs)<EOL><DEDENT>return None<EOL>
百度网盘下载错误控制
        :param act: 出错时的行为, 有 download
        :param errno: 出错时的errno,这个要配合act才有实际意义
        :param callback: 返回时的调用函数, 为空时返回None
        :param args: 给callback函数的参数tuple
        :param kwargs: 给callback函数的带名参数字典

        在本函数调用后一定可以解决提交过来的问题, 在外部不需要重复检查是否存在原问题