From fd84face98f43f57591480b645a0f9f8a69e48d1 Mon Sep 17 00:00:00 2001 From: Rhythmic System Date: Tue, 31 Dec 2024 16:50:13 -0800 Subject: [PATCH] get or default --- .github/workflows/deploy.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/.github/workflows/deploy.py b/.github/workflows/deploy.py index e38955f..6e6d777 100644 --- a/.github/workflows/deploy.py +++ b/.github/workflows/deploy.py @@ -46,10 +46,7 @@ def get_project_id(json_file): return json_file["project_id"] def get_dependencies(json_file): - dependencies = json_file["dependencies"] - if dependencies is None: - return [] - return dependencies + return json_file.get("dependencies", []) def should_update_pack(modrinth_json): if modrinth_json is None: