Fixed error when user fails to enter correct password

Pappy would raise exceptions and continued project in clear-text
when the user failed to enter the correct decryption password.

Added a boolean status variable to config `crypt_success` that
gets set to true when project decrypts correctly, otherwise it
is set to false.
This commit is contained in:
Nich 2016-04-05 19:04:38 -04:00
parent 6b8861058e
commit 772e7ee507
3 changed files with 8 additions and 3 deletions

View file

@ -170,6 +170,7 @@ class PappyConfig(object):
self.crypt_dir = 'crypt'
self.crypt_file = 'project.crypt'
self.crypt_session = False
self.crypt_success = False
self.salt_file = 'project.salt'
def get_default_config(self):