Don't use catch all except (i.e. using general Exception).
at the moment add else part to the if in the except
EDIT: yes, I get "unable to open database file"
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
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs