コード例 #1
0
ファイル: browser.py プロジェクト: P4ncake/weboob
    def get_exception(self, e):
        if isinstance(e, urllib2.HTTPError) and hasattr(e, 'getcode'):
            if e.getcode() in (410,):
                return BrowserHTTPNotFound

        return Browser.get_exception(self, e)
コード例 #2
0
ファイル: browser.py プロジェクト: sourcery-ai-bot/weboob
    def get_exception(self, e):
        if (isinstance(e, urllib2.HTTPError) and hasattr(e, 'getcode')
                and e.getcode() in (410, )):
            return BrowserHTTPNotFound

        return Browser.get_exception(self, e)