fix: Strip API key before setting it.

pull/1182/head
Raphaël Vinot 2024-03-22 15:47:15 +01:00
parent 248af1fa5a
commit 763ab4198e
1 changed files with 1 additions and 1 deletions

View File

@ -177,7 +177,7 @@ class PyMISP:
raise NoKey('Please provide your authorization key.')
self.root_url: str = url
self.key: str = key
self.key: str = key.strip()
self.ssl: bool | str = ssl
self.proxies: MutableMapping[str, str] | None = proxies
self.cert: str | tuple[str, str] | None = cert