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

Commit b5032c0

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

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
@@ -120,7 +120,7 @@ def __init__(
120120
self.ssl_verify = ssl_verify
121121
self.cert = cert
122122
self.proxies = proxies
123-
if url is None or len(url) == 0:
123+
if not url:
124124
raise ValueError("An URL must be set")
125125
if token is None or len(token) == 0 or token == "ChangeMe":
126126
raise ValueError("A TOKEN must be set")

0 commit comments

Comments
 (0)