2 Commits

2 changed files with 4 additions and 3 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
[project] [project]
name = "rbx-upload" name = "rbx-upload"
version = "0.2.8" version = "0.2.10"
description = "Roblox asset upload client" description = "Roblox asset upload client"
requires-python = ">=3.13" requires-python = ">=3.13"
dependencies = [ dependencies = [
+3 -2
View File
@@ -297,13 +297,14 @@ class RobloxClient:
if response.status_code == 429: if response.status_code == 429:
raise RateLimitError("Rate limit hit during collectible publish.") raise RateLimitError("Rate limit hit during collectible publish.")
if response.status_code in (401, 403): if response.status_code in (401, 403):
raise AuthError("Not authorized to publish this collectible.") raise AuthError(f"Not authorized to publish this collectible ({response.status_code}): {response.text}")
response.raise_for_status() response.raise_for_status()
data = response.json() data = response.json()
collectible_item_id = data.get("collectibleItemId") collectible_item_id = data.get("collectibleItemId")
if not collectible_item_id: 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 return collectible_item_id
async def onsale_asset( async def onsale_asset(