(str(e).find("file is encrypted") > -1 or str(e).find("not a database") > -1):