avrae
avrae copied to clipboard
AVR-1062 Server Setting, Custom Stat Roll, Number of Stats setting does not save changes
What is the bug?: Server Setting, Custom Stat Roll, Number of Stats setting does not save changes. Severity: Medium (minor functional impact) Steps to reproduce:
- run
!server_settings - click
Custom Stat Roll Settings - click
Set Number of Stats - enter any allowed number besides 6
- click
back - click
exit - repeat steps 1 and 2, Number of stats will have reverted back to 6. Context: https://cdn.discordapp.com/attachments/269276431605956609/1377831102588125225/20250530-0208-05.6008434.mp4?ex=683a64b5&is=68391335&hm=19250e1378169145d09c084920a9eff140e2dde760d59f945878b4c4bdf56175&xxx
- theminingalex#0
note for devs/fixer
File "/home/avrae/ui/servsettings.py", line 582, in select_stats
if self.settings.randchar_num != len(self.settings.randchar_stat_names) and self.settings.randchar_straight:
TypeError: object of type 'NoneType' has no len()