Skip to content

Commit 05a086d

Browse files
committed
lint
1 parent 231e3dd commit 05a086d

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

gcp/website/triage_handlers.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,19 +2,20 @@
22
import logging
33
import re
44
import requests
5+
import utils
56

67
from flask import Blueprint, request, jsonify, render_template
78
from google.cloud import storage
89

9-
import utils
10-
1110
blueprint = Blueprint('triage_handlers', __name__)
1211

12+
1313
@blueprint.before_request
1414
def restrict_to_local():
1515
"""Restrict triage handlers to local environment."""
1616
if utils.is_cloud_run():
1717
return jsonify({'error': 'This tool is only available locally.'}), 403
18+
return None
1819

1920

2021
_CVE_ID_REGEX = re.compile(r'^CVE-\d{4}-\d+$', re.IGNORECASE)

0 commit comments

Comments
 (0)