Skip to content

Commit

Permalink
utils: fix abort import
Browse files Browse the repository at this point in the history
* Changes import of abort to use the flask function.
* Fixes Sentry SONAR-F2.

Co-Authored-by: Bertrand Zuchuat <bertrand.zuchuat@rero.ch>
  • Loading branch information
Garfield-fr committed Apr 27, 2022
1 parent 1ca12c0 commit e52c017
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions sonar/modules/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e52c017

Please sign in to comment.