Thread
:
How to detect HTTP conditions in jsbrowser/browser.py
View Single Post
05-27-2013, 03:23 PM
#
2
kovidgoyal
creator of calibre
Posts: 45,424
Karma: 27757236
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Whya re you using jsbrowser to parse OPDS? use the mechanize based browser instead, which will raise exceptions for HTTP error codes.
from calibre import browser
br = browser()
kovidgoyal
View Public Profile
Visit kovidgoyal's homepage!
Find More Posts by kovidgoyal
Track Posts by kovidgoyal via RSS