From e52c0174a1a888a139bc60e8a592d46301823c7a Mon Sep 17 00:00:00 2001 From: Bertrand Zuchuat Date: Wed, 20 Apr 2022 08:11:29 +0200 Subject: [PATCH] utils: fix abort import * Changes import of abort to use the flask function. * Fixes Sentry SONAR-F2. Co-Authored-by: Bertrand Zuchuat --- sonar/modules/utils.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/sonar/modules/utils.py b/sonar/modules/utils.py index 95a6ae56..5171bc23 100644 --- a/sonar/modules/utils.py +++ b/sonar/modules/utils.py @@ -19,9 +19,8 @@ import datetime import re -from os import abort -from flask import current_app, g, request +from flask import abort, current_app, g, request from invenio_i18n.ext import current_i18n from invenio_mail.api import TemplatedMessage from netaddr import IPAddress, IPGlob, IPNetwork, IPSet