From 61fef114eb678f2f14950620861102d9e5546067 Mon Sep 17 00:00:00 2001 From: IshayuR Date: Wed, 13 Nov 2024 23:42:19 -0500 Subject: [PATCH] pylint fixes for app.py --- Backend/app.py | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/Backend/app.py b/Backend/app.py index e36408a..7083544 100644 --- a/Backend/app.py +++ b/Backend/app.py @@ -413,11 +413,10 @@ def fetch_allusers(): user_occupation: type: string """ - try: - allusers = databasefunctions.fetch_all_users() - return jsonify(allusers), 200 - except Exception as e: - return jsonify({"error": str(e)}), 500 + + allusers = databasefunctions.fetch_all_users() + return jsonify(allusers), 200 + @app.route("/fetch_allpets", methods=["POST"]) def fetch_allpets():