Skip to content

Commit 6892e6a

Browse files
committed
fix qa issues, clean up settings because of that
1 parent fe812a9 commit 6892e6a

File tree

6 files changed

+453
-480
lines changed

6 files changed

+453
-480
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,7 @@ vulture: ${app} ## Check for unused code
253253
${python} -m vulture ${pysrcdirs}
254254

255255
ruff: ${app} ## Faster than black, might autoformat some things
256-
${python} -m ruff ${pysrcdirs}
256+
${python} -m ruff check ${pysrcdirs}
257257

258258
bandit: ${app} ## Run basic security audit
259259
${python} -m bandit --configfile bandit.yaml -r ${pysrcdirs}

dashboard/internet_nl_dashboard/logic/domains.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,8 @@ def suggest_subdomains(domain: str, period: int = 370):
3838

3939
# call SUBDOMAIN_SUGGESTION_SERVER_ADDRESS
4040
response = requests.get(config.SUBDOMAIN_SUGGESTION_SERVER_ADDRESS,
41-
params={'domain': extract.domain, 'suffix': extract.suffix, 'period': period})
41+
params={'domain': extract.domain, 'suffix': extract.suffix, 'period': period},
42+
timeout=10)
4243

4344
if response.status_code != 200:
4445
log.error("Failed to retrieve subdomain suggestions from %s.", config.SUBDOMAIN_SUGGESTION_SERVER_ADDRESS)

0 commit comments

Comments
 (0)