aboutsummaryrefslogtreecommitdiffstats
path: root/packages/meshbay-node/src/meshbay_node/config.py
diff options
context:
space:
mode:
Diffstat (limited to 'packages/meshbay-node/src/meshbay_node/config.py')
-rw-r--r--packages/meshbay-node/src/meshbay_node/config.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/meshbay-node/src/meshbay_node/config.py b/packages/meshbay-node/src/meshbay_node/config.py
index cfbec50..7be68a4 100644
--- a/packages/meshbay-node/src/meshbay_node/config.py
+++ b/packages/meshbay-node/src/meshbay_node/config.py
@@ -307,7 +307,7 @@ def load_config(path: Path = DEFAULT_CONFIG_PATH) -> Config:
cfg = Config()
if path.exists():
- raw = tomllib.loads(path.read_text())
+ raw = tomllib.loads(path.read_text(encoding="utf-8"))
hub = raw.get("hub", {})
cfg.hub.url = hub.get("url", cfg.hub.url)
@@ -404,4 +404,4 @@ def write_example_config(path: Path = DEFAULT_CONFIG_PATH) -> None:
"""Write an example config file if none exists."""
if not path.exists():
path.parent.mkdir(parents=True, exist_ok=True)
- path.write_text(EXAMPLE_CONFIG)
+ path.write_text(EXAMPLE_CONFIG, encoding="utf-8", newline="\n")