diff --git a/sdk/python/packages/flet-cli/src/flet_cli/utils/project_dependencies.py b/sdk/python/packages/flet-cli/src/flet_cli/utils/project_dependencies.py index 756a68356..218705576 100644 --- a/sdk/python/packages/flet-cli/src/flet_cli/utils/project_dependencies.py +++ b/sdk/python/packages/flet-cli/src/flet_cli/utils/project_dependencies.py @@ -18,8 +18,9 @@ def format_dependency_version(dependency: str, version_value: Any): suffix = "" if isinstance(version_value, dict): version = version_value["version"] - if version_value["markers"]: - suffix = f";{version_value['markers']}" + markers = version_value.get("markers") + if markers is not None: + suffix = f";{markers}" else: version = version_value