Skip to content

Commit

Permalink
fix lint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Prakash committed Jan 1, 2024
1 parent 5a60902 commit 37df2e3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@

Useful if you want to share some data with someone (eg. over mail) with strong encryption, and you don't trust the online companies doing encryption for you

Try out the tool at : https://easyencryption.onrender.com/
Try out the tool at : https://easyencryption.onrender.com/
**Note** that first launch might take a minute, subsequent runs will be instant.

# Local Setup
### Using docker
Expand Down
4 changes: 2 additions & 2 deletions app.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
"""

from flask import Flask, render_template, request, jsonify
from core import generate_key, encrypt_message, decrypt_message
from cryptography.fernet import InvalidToken
from core import generate_key, encrypt_message, decrypt_message

app = Flask(__name__)

Expand Down Expand Up @@ -54,7 +54,7 @@ def decrypt():
except ValueError as error:
return jsonify({'error': str(error)}), 500
except InvalidToken as error:
return jsonify('error : Invalid encoded string'), 500
return jsonify({'error': f'Invalid encoded string {str(error)}'}), 500


if __name__ == '__main__':
Expand Down

0 comments on commit 37df2e3

Please sign in to comment.