Skip to content

Commit

Permalink
fix precommit
Browse files Browse the repository at this point in the history
  • Loading branch information
alejandroroiz committed Apr 11, 2024
1 parent 6bc14e5 commit 6f449d1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion confidant/routes/credentials.py
Original file line number Diff line number Diff line change
Expand Up @@ -843,7 +843,8 @@ def update_credential(id):
if 'credential_pairs' in data:
# Ensure the credential is not empty
if data['credential_pairs'] == {}:
return jsonify({'error': 'Credential Pairs cannot be empty'}), 400
error = {'error': 'Credential Pairs cannot be empty'}
return jsonify(error), 400

# Ensure credential pair keys are lowercase
credential_pairs = credentialmanager.lowercase_credential_pairs(
Expand Down

0 comments on commit 6f449d1

Please sign in to comment.