Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(3)  |  Call(3)  |  Derive(0)  |  Import(0)

src/b/a/BaiduYunPanPython-HEAD/plugins/Baidu/BaiduPlugin.py   BaiduYunPanPython(Download)
        except urllib2.HTTPError, e:
            emsg = e.read()
            logging.error('[%s]: HTTP error=>%d, result=>%s', self.getName(), e.code, emsg)
            edata = json.loads(emsg)
            error = {'http': e.code, 'code': edata['error'], 'description': edata['error_description']}
                res = strIO.getvalue()
                strIO.close()
                logging.debug('[%s]: File list result\n%s', self.getName(), res)
 
            elif 'quota' in data:
    def pcsErrorHandler(self, e):
        """pcs error handler"""
        emsg = e.read()
        logging.error('[%s]: HTTP error=>%d, result=>%s', self.getName(), e.code, emsg)
        edata = json.loads(emsg)