fix: fall back to get_collectible_item_id when publish returns status=0

This commit is contained in:
2026-03-07 14:07:10 -05:00
parent 83fbf9a91e
commit 94e457f240
2 changed files with 3 additions and 2 deletions
+1 -1
View File
@@ -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 = [
+2 -1
View File
@@ -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(