Skip to content

Commit

Permalink
Merge pull request #1959 from sherlock-project/fix-actions
Browse files Browse the repository at this point in the history
updated ruff syntax
  • Loading branch information
sdushantha authored Dec 21, 2023
2 parents bf04a4a + fe069d0 commit b817e9d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
- name: Lint with ruff
run: |
# 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
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
- name: Sherlock Site Detect Tests
Expand Down
4 changes: 2 additions & 2 deletions sherlock/sherlock.py
Original file line number Diff line number Diff line change
Expand Up @@ -368,11 +368,11 @@ def sherlock(
# Attempt to get request information
try:
http_status = r.status_code
except:
except Exception:
http_status = "?"
try:
response_text = r.text.encode(r.encoding or "UTF-8")
except:
except Exception:
response_text = ""

query_status = QueryStatus.UNKNOWN
Expand Down

0 comments on commit b817e9d

Please sign in to comment.