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