mirror of
https://github.com/sherlock-project/sherlock
synced 2025-02-16 20:48:27 +00:00
Merge pull request #1959 from sherlock-project/fix-actions
updated ruff syntax
This commit is contained in:
commit
b817e9d4a9
2 changed files with 3 additions and 3 deletions
2
.github/workflows/main.yml
vendored
2
.github/workflows/main.yml
vendored
|
@ -25,7 +25,7 @@ jobs:
|
||||||
- name: Lint with ruff
|
- name: Lint with ruff
|
||||||
run: |
|
run: |
|
||||||
# stop the build if there are Python syntax errors or undefined names
|
# stop the build if there are Python syntax errors or undefined names
|
||||||
ruff . --format=github --select=E9,F63,F7,F82
|
ruff . -- --format=github --select=E9,F63,F7,F82
|
||||||
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
|
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
|
||||||
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
|
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
|
||||||
- name: Sherlock Site Detect Tests
|
- name: Sherlock Site Detect Tests
|
||||||
|
|
|
@ -368,11 +368,11 @@ def sherlock(
|
||||||
# Attempt to get request information
|
# Attempt to get request information
|
||||||
try:
|
try:
|
||||||
http_status = r.status_code
|
http_status = r.status_code
|
||||||
except:
|
except Exception:
|
||||||
http_status = "?"
|
http_status = "?"
|
||||||
try:
|
try:
|
||||||
response_text = r.text.encode(r.encoding or "UTF-8")
|
response_text = r.text.encode(r.encoding or "UTF-8")
|
||||||
except:
|
except Exception:
|
||||||
response_text = ""
|
response_text = ""
|
||||||
|
|
||||||
query_status = QueryStatus.UNKNOWN
|
query_status = QueryStatus.UNKNOWN
|
||||||
|
|
Loading…
Add table
Reference in a new issue