Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if os.path.isfile(fprofile):
- try:
- con = sqlite3.connect(fprofile,1)
- except:
- raise ADEPTError('Firefox Cookie database locked. Close Firefox and try again')
- cur = con.cursor()
- try:
- cur.execute("select value from moz_cookies where name=? and host=?", (cname, chost))
- except Exception:
- raise ADEPTError('Firefox Cookie database is locked. Close Firefox and try again')
- try:
- return cur.fetchone()[0]
- except Exception:
- # sometimes is a dot in front of the host
Add Comment
Please, Sign In to add comment