From eb05221f57ec4b6a5537ac7661811ba33b4b0385 Mon Sep 17 00:00:00 2001 From: Frederick Muriuki Muriithi Date: Mon, 5 Aug 2024 12:13:10 -0500 Subject: Fix linting errors. --- gn_auth/auth/authorisation/resources/views.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'gn_auth/auth/authorisation/resources/views.py') diff --git a/gn_auth/auth/authorisation/resources/views.py b/gn_auth/auth/authorisation/resources/views.py index 19d3d9a..494fde9 100644 --- a/gn_auth/auth/authorisation/resources/views.py +++ b/gn_auth/auth/authorisation/resources/views.py @@ -46,7 +46,7 @@ from .models import ( unassign_resource_user, resource_category_by_id, user_roles_on_resources, unlink_data_from_resource, create_resource as _create_resource, get_resource_id) -from .groups.models import Group, resource_owner, group_role_by_id +from .groups.models import Group resources = Blueprint("resources", __name__) @@ -440,7 +440,7 @@ def resources_authorisation(): "Expected a JSON object with a 'resource-ids' key.") }) resp.status_code = 400 - except Exception as _exc: + except Exception as _exc:#pylint: disable=[broad-except] app.logger.debug("Generic exception.", exc_info=True) resp = jsonify({ "status": "general-exception", -- cgit v1.2.3