From 474cc7c7d8dca0801ef7633194c11d9fb705b8d8 Mon Sep 17 00:00:00 2001 From: montezdesousa Date: Wed, 12 Jul 2023 19:18:31 +0100 Subject: [PATCH] don't build if there is nothing to build --- openbb_sdk/sdk/core/openbb_core/app/static/package_builder.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/openbb_sdk/sdk/core/openbb_core/app/static/package_builder.py b/openbb_sdk/sdk/core/openbb_core/app/static/package_builder.py index c494960bdae..f893ed1a54d 100644 --- a/openbb_sdk/sdk/core/openbb_core/app/static/package_builder.py +++ b/openbb_sdk/sdk/core/openbb_core/app/static/package_builder.py @@ -59,8 +59,8 @@ class PackageBuilder: route_map = PathHandler.build_route_map() path_list = PathHandler.build_path_list(route_map=route_map) - MAX_LEN = max([len(path) for path in path_list if path != "/"]) - + p = [len(path) for path in path_list if path != "/"] + MAX_LEN = max(p) if p else 0 for path in path_list: route = PathHandler.get_route(path=path, route_map=route_map) if route is None: