From 94e457f2407a84734f76ab9d88431ff73bf98d20 Mon Sep 17 00:00:00 2001 From: filoxenace Date: Sat, 7 Mar 2026 14:07:10 -0500 Subject: [PATCH] fix: fall back to get_collectible_item_id when publish returns status=0 --- pyproject.toml | 2 +- src/rbx_upload/client.py | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 002ede9..877eb94 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "rbx-upload" -version = "0.2.9" +version = "0.2.10" description = "Roblox asset upload client" requires-python = ">=3.13" dependencies = [ diff --git a/src/rbx_upload/client.py b/src/rbx_upload/client.py index 2381170..f8fe32d 100644 --- a/src/rbx_upload/client.py +++ b/src/rbx_upload/client.py @@ -303,7 +303,8 @@ class RobloxClient: data = response.json() collectible_item_id = data.get("collectibleItemId") if not collectible_item_id: - raise UploadError(f"publish_collectible did not return a collectibleItemId: {data}") + # status=0 means already published — look up the ID + collectible_item_id = await self.get_collectible_item_id(asset_id) return collectible_item_id async def onsale_asset(