Skip to content

Limit the length of the donated hardware name#142

Merged
wookie184 merged 2 commits intopython-discord:mainfrom
decorator-factory-clones:smarte-fix-gpu-overload
Apr 1, 2025
Merged

Limit the length of the donated hardware name#142
wookie184 merged 2 commits intopython-discord:mainfrom
decorator-factory-clones:smarte-fix-gpu-overload

Conversation

@decorator-factory
Copy link
Member

Message example: https://discord.com/channels/267624335836053506/1356544424619806781/1356631764998553652

The improve_gpu_name function can increase the length of a string, creating a GPU name that will cause the ctx.reply call to fail.

@wookie184
Copy link
Contributor

The original name is still mentioned in the message, so this isn't enough, no?

@decorator-factory
Copy link
Member Author

Oh yeah... maybe it's better to just give an error response in that case

Copy link
Contributor

@wookie184 wookie184 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@wookie184 wookie184 merged commit 4d0a486 into python-discord:main Apr 1, 2025
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants