Skip to content

Commit

Permalink
Fix code scanning alert no. 4: Information exposure through an exception
Browse files Browse the repository at this point in the history
Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
  • Loading branch information
malvads and github-advanced-security[bot] authored Nov 14, 2024
1 parent 4babfa7 commit a201e25
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion resources/src/server/rest.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,8 @@ def identify_ip(self):
return jsonify(result), 200

except Exception as e:
return jsonify({"error": str(e)}), 500
logger.logger.error(f"Exception in identify_ip: {e}")
return jsonify({"error": "An internal error has occurred!"}), 500


def decode_b64_json(self, b64_json):
Expand Down

0 comments on commit a201e25

Please sign in to comment.