Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions set-custom-icons.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,10 @@ def update_icon(base_url, bearer, kind_name, icon_name, icon_color, icon_type="f
verify=verify
)

if r.status_code == 200:
print(f" └──[+] Custom icon for {kind_name} updated successfully")
if r.status_code in (200, 201):
print(f" └──[+] Custom icon for {kind_name} created successfully")
else:
print(f" └──[!] Failed to update custom icon for {kind_name} (HTTP {r.status_code})")
print(f" └──[!] Failed to create custom icon for {kind_name} (HTTP {r.status_code})")
print(r.text)
return

Expand Down
Loading