Skip to content

Commit

Permalink
fix: load_config fails with "does not exist"
Browse files Browse the repository at this point in the history
  • Loading branch information
xmatthias committed Aug 24, 2024
1 parent 83ebace commit b1fb4c0
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions ftui/ftui_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
import freqtrade_client.ft_rest_client as ftrc
import numpy as np
import pandas as pd
from freqtrade_client.ft_client import load_config

logging.basicConfig(
level=logging.WARNING,
Expand Down Expand Up @@ -44,7 +45,7 @@ def __init__(

def setup_client(self):
if self.url is None and self.port is None:
config = ftrc.load_config(self.config_path)
config = load_config(self.config_path)
self.url = config.get("api_server", {}).get("listen_ip_address", "127.0.0.1")
self.port = config.get("api_server", {}).get("listen_port", "8080")

Expand All @@ -53,7 +54,7 @@ def setup_client(self):
self.password = config.get("api_server", {}).get("password")
else:
if self.config_path is not None:
config = ftrc.load_config(self.config_path)
config = load_config(self.config_path)

if self.username is None and self.password is None:
self.username = config.get("api_server", {}).get("username")
Expand Down

0 comments on commit b1fb4c0

Please sign in to comment.