Skip to content

Commit

Permalink
regular python static grammar
Browse files Browse the repository at this point in the history
  • Loading branch information
antx-code committed Mar 25, 2022
1 parent 10458f9 commit 8db8c3e
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -132,5 +132,8 @@ dist
.idea
poetry.lock
.coverage
htmlcov
.pytest_cache
coverage.xml
/tests/
*.pyc
__pycache__
2 changes: 1 addition & 1 deletion pocx/aio_poc.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ def set_headers(self, headers: dict = None):
async def aio_request(self, url: str, method: str = 'get', timeout: int = 10, **kwargs) -> httpx.Response:
try:
resp = await self.session.request(method, url, timeout=timeout, **kwargs)
except Exception as e:
except Exception:
logger.error(f'[-] Run Poc [{self.cve} - {self.name}] Connection Error => {url} was not reachable.')
resp = None
return resp
Expand Down
2 changes: 1 addition & 1 deletion pocx/basic_poc.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ def set_headers(self, headers: dict = None):
def request(self, url: str, method: str = 'get', timeout: int = 10, **kwargs) -> httpx.Response:
try:
resp = self.session.request(method, url, timeout=timeout, **kwargs)
except Exception as e:
except Exception:
logger.error(f'[-] Run Poc [{self.cve} - {self.name}] Connection Error => {url} was not reachable.')
resp = None
return resp
Expand Down
1 change: 0 additions & 1 deletion pocx/funcs/snow_flake.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ class InvalidSystemClock(Exception):
"""
时钟回拨异常
"""
pass


# 64位ID的划分
Expand Down

0 comments on commit 8db8c3e

Please sign in to comment.