Skip to content
This repository was archived by the owner on Dec 5, 2025. It is now read-only.

Commit f6ce9d8

Browse files
author
Guillaume Dedrie
committed
[client] simplify token verification using a more Pythonic style
1 parent b5032c0 commit f6ce9d8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pycti/api/opencti_api_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ def __init__(
122122
self.proxies = proxies
123123
if not url:
124124
raise ValueError("An URL must be set")
125-
if token is None or len(token) == 0 or token == "ChangeMe":
125+
if not token or token == "ChangeMe":
126126
raise ValueError("A TOKEN must be set")
127127

128128
# Configure logger

0 commit comments

Comments
 (0)