Guest User

Untitled

a guest
Oct 16th, 2018
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1.  
  2. if os.path.isfile(fprofile):
  3. try:
  4. con = sqlite3.connect(fprofile,1)
  5. except:
  6. raise ADEPTError('Firefox Cookie database locked. Close Firefox and try again')
  7. cur = con.cursor()
  8. try:
  9. cur.execute("select value from moz_cookies where name=? and host=?", (cname, chost))
  10. except Exception:
  11. raise ADEPTError('Firefox Cookie database is locked. Close Firefox and try again')
  12. try:
  13. return cur.fetchone()[0]
  14. except Exception:
  15. # sometimes is a dot in front of the host
Add Comment
Please, Sign In to add comment