mirror of
https://github.com/brygphilomena/pyhuntress.git
synced 2025-11-04 16:27:30 +00:00
minor fixes
This commit is contained in:
parent
2aa21e8044
commit
b25e300fef
@ -2,4 +2,4 @@ from pyhuntress.clients.managedsat_client import HuntressSATAPIClient
|
|||||||
from pyhuntress.clients.siem_client import HuntressSIEMAPIClient
|
from pyhuntress.clients.siem_client import HuntressSIEMAPIClient
|
||||||
|
|
||||||
__all__ = ["HuntressSATAPIClient", "HuntressSIEMAPIClient"]
|
__all__ = ["HuntressSATAPIClient", "HuntressSIEMAPIClient"]
|
||||||
__version__ = "0.6.1"
|
__version__ = "0.1.1"
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
class Config:
|
class Config:
|
||||||
def __init__(self, max_retries=3) -> None: # noqa: ANN001
|
def __init__(self, max_retries=3) -> None:
|
||||||
"""
|
"""
|
||||||
Initializes a new instance of the Config class.
|
Initializes a new instance of the Config class.
|
||||||
|
|
||||||
|
|||||||
@ -5,7 +5,7 @@ from urllib.parse import urlsplit, urlunsplit
|
|||||||
from requests import JSONDecodeError, Response
|
from requests import JSONDecodeError, Response
|
||||||
|
|
||||||
|
|
||||||
class HuntressException(Exception): # noqa: N818
|
class HuntressException(Exception):
|
||||||
_code_explanation: ClassVar[str] = "" # Ex: for 404 "Not Found"
|
_code_explanation: ClassVar[str] = "" # Ex: for 404 "Not Found"
|
||||||
_error_suggestion: ClassVar[str] = "" # Ex: for 404 "Check the URL you are using is correct"
|
_error_suggestion: ClassVar[str] = "" # Ex: for 404 "Check the URL you are using is correct"
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user