mirror of https://github.com/MISP/PyMISP
fix: Strip API key before setting it.
parent
248af1fa5a
commit
763ab4198e
|
@ -177,7 +177,7 @@ class PyMISP:
|
||||||
raise NoKey('Please provide your authorization key.')
|
raise NoKey('Please provide your authorization key.')
|
||||||
|
|
||||||
self.root_url: str = url
|
self.root_url: str = url
|
||||||
self.key: str = key
|
self.key: str = key.strip()
|
||||||
self.ssl: bool | str = ssl
|
self.ssl: bool | str = ssl
|
||||||
self.proxies: MutableMapping[str, str] | None = proxies
|
self.proxies: MutableMapping[str, str] | None = proxies
|
||||||
self.cert: str | tuple[str, str] | None = cert
|
self.cert: str | tuple[str, str] | None = cert
|
||||||
|
|
Loading…
Reference in New Issue