Skip to content

Commit

Permalink
consistent behavior for decryption fail
Browse files Browse the repository at this point in the history
  • Loading branch information
greeeen-dev committed Sep 25, 2024
1 parent c8f27b3 commit 5dc999f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion unifier.py
Original file line number Diff line number Diff line change
Expand Up @@ -411,7 +411,8 @@ def tokenstore(self):

if not bot.tokenstore.test_decrypt():
del os.environ['UNIFIER_ENCPASS']
logger.critical('An error occurred while testing decryption. Please check your password and try again.')
print('\x1b[31;1mInvalid password. Your encryption password is needed to decrypt tokens.\x1b[0m')
print('\x1b[31;1mIf you\'ve forgot your password, run the bootscript again with --clear-tokens\x1b[0m')
sys.exit(1)

if bot.coreboot:
Expand Down

0 comments on commit 5dc999f

Please sign in to comment.