Skip to content

Commit 1b3e54a

Browse files
committed
fix(cli): suppress SSL warnings early to prevent polluting CI output
1 parent 9be3947 commit 1b3e54a

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

nipyapi/cli.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -303,6 +303,13 @@ def __dir__(self):
303303

304304
def main():
305305
"""CLI entry point."""
306+
# Suppress SSL warnings early to prevent them polluting stdout in CI
307+
# This is safe as the warnings are informational and CLI users expect clean output
308+
import urllib3
309+
310+
if os.environ.get("NIFI_VERIFY_SSL", "true").lower() in ("false", "0", "no"):
311+
urllib3.disable_warnings(urllib3.exceptions.InsecureRequestWarning)
312+
306313
try:
307314
import fire
308315
except ImportError:

0 commit comments

Comments
 (0)