Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Cookies
#2
Don't use catch all except (i.e. using general Exception).
at the moment add else part to the if in the except
except Exception as e:
    if 'encrypted' in str(e):
        print ('encrypted')
    else:
        print(e)
I guess there is some exception that you shadow and don't see it.
EDIT: yes, I get "unable to open database file"
If you can't explain it to a six year old, you don't understand it yourself, Albert Einstein
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs

Reply


Messages In This Thread
Cookies - by Donald - Jan-24-2019, 09:20 AM
RE: Cookies - by buran - Jan-24-2019, 09:47 AM
RE: Cookies - by Donald - Jan-24-2019, 10:55 AM
RE: Cookies - by DPaul - Apr-15-2020, 07:06 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  How to accept facebook cookies using python selenium? pablo86ad 0 281 Apr-06-2024, 09:19 PM
Last Post: pablo86ad
  Retrieving Cookies whois1230 2 2,232 Nov-21-2020, 12:01 PM
Last Post: snippsat
  Requests needs cookies for login justasug 2 18,181 Jul-27-2017, 08:38 AM
Last Post: justasug

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020