diff options
| author | robot-piglet <[email protected]> | 2024-03-06 16:21:44 +0300 |
|---|---|---|
| committer | robot-piglet <[email protected]> | 2024-03-06 16:39:04 +0300 |
| commit | ef7927bafdc2f5d67814cdf41f538946ebbe0604 (patch) | |
| tree | eabe8660c3a5249129995105fce4313547af2c84 /yt/python | |
| parent | c40ca3aecd1217720caeb85144a70899e015d03f (diff) | |
Intermediate changes
Diffstat (limited to 'yt/python')
| -rw-r--r-- | yt/python/yt/yson/__init__.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/yt/python/yt/yson/__init__.py b/yt/python/yt/yson/__init__.py index aca29e6030e..8fa64bd180d 100644 --- a/yt/python/yt/yson/__init__.py +++ b/yt/python/yt/yson/__init__.py @@ -32,6 +32,7 @@ Examples: """ from __future__ import print_function +import os from . import writer # noqa from . import parser # noqa @@ -63,7 +64,8 @@ except ImportError: message = str(error) if "No module named" not in message: import sys as _sys - print("Warning! Failed to import dump_parquet binding: " + message, file=_sys.stderr) + if os.environ.get("YT_LOG_LEVEL", "").lower() == "debug": + print("Warning! Failed to import dump_parquet binding: " + message, file=_sys.stderr) if TYPE is None: from .parser import load, loads # noqa |
