Skip to content

Commit 8db8c3e

Browse files
committed
regular python static grammar
1 parent 10458f9 commit 8db8c3e

File tree

4 files changed

+6
-4
lines changed

4 files changed

+6
-4
lines changed

.gitignore

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,5 +132,8 @@ dist
132132
.idea
133133
poetry.lock
134134
.coverage
135+
htmlcov
136+
.pytest_cache
135137
coverage.xml
136-
/tests/
138+
*.pyc
139+
__pycache__

pocx/aio_poc.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ def set_headers(self, headers: dict = None):
2727
async def aio_request(self, url: str, method: str = 'get', timeout: int = 10, **kwargs) -> httpx.Response:
2828
try:
2929
resp = await self.session.request(method, url, timeout=timeout, **kwargs)
30-
except Exception as e:
30+
except Exception:
3131
logger.error(f'[-] Run Poc [{self.cve} - {self.name}] Connection Error => {url} was not reachable.')
3232
resp = None
3333
return resp

pocx/basic_poc.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ def set_headers(self, headers: dict = None):
2626
def request(self, url: str, method: str = 'get', timeout: int = 10, **kwargs) -> httpx.Response:
2727
try:
2828
resp = self.session.request(method, url, timeout=timeout, **kwargs)
29-
except Exception as e:
29+
except Exception:
3030
logger.error(f'[-] Run Poc [{self.cve} - {self.name}] Connection Error => {url} was not reachable.')
3131
resp = None
3232
return resp

pocx/funcs/snow_flake.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ class InvalidSystemClock(Exception):
66
"""
77
时钟回拨异常
88
"""
9-
pass
109

1110

1211
# 64位ID的划分

0 commit comments

Comments
 (0)