From 4115121c249077ff123c2d15ac22df62ed375ed4 Mon Sep 17 00:00:00 2001 From: Matthias Date: Mon, 16 Aug 2021 07:26:58 +0200 Subject: [PATCH] Fix missing return statement in is_Relative_to --- freqtrade/rpc/api_server/web_ui.py | 1 + 1 file changed, 1 insertion(+) diff --git a/freqtrade/rpc/api_server/web_ui.py b/freqtrade/rpc/api_server/web_ui.py index 9aae0afae..b04269c61 100644 --- a/freqtrade/rpc/api_server/web_ui.py +++ b/freqtrade/rpc/api_server/web_ui.py @@ -33,6 +33,7 @@ def is_relative_to(path, base) -> bool: # Helper function simulating behaviour of is_relative_to, which was only added in python 3.9 try: path.relative_to(base) + return True except ValueError: pass return False