Skip to content

Commit 76a10db

Browse files
authored
Ruff
1 parent 434e4e2 commit 76a10db

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

bittensor/utils/btlogging/loggingmachine.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -585,7 +585,12 @@ def add_args(cls, parser: argparse.ArgumentParser, prefix: str = None):
585585
default_logging_info = os.getenv("BT_LOGGING_INFO") or False
586586
default_logging_trace = os.getenv("BT_LOGGING_TRACE") or False
587587
default_logging_record_log = os.getenv("BT_LOGGING_RECORD_LOG") or False
588-
default_logging_logging_dir = None if READ_ONLY else os.getenv("BT_LOGGING_LOGGING_DIR") or os.path.join("~", ".bittensor", "miners")
588+
default_logging_logging_dir = (
589+
None
590+
if READ_ONLY
591+
else os.getenv("BT_LOGGING_LOGGING_DIR")
592+
or os.path.join("~", ".bittensor", "miners")
593+
)
589594
parser.add_argument(
590595
"--" + prefix_str + "logging.debug",
591596
action="store_true",

0 commit comments

Comments
 (0)