Fix category range info check
This commit is contained in:
parent
c3e0bb90d6
commit
08e6cd200d
1 changed files with 1 additions and 1 deletions
|
|
@ -485,7 +485,7 @@ class Bot:
|
||||||
category_ranges.append((category_range, category_range, category))
|
category_ranges.append((category_range, category_range, category))
|
||||||
continue
|
continue
|
||||||
range_info = (category.name or '').split('-')
|
range_info = (category.name or '').split('-')
|
||||||
if len(range_info) == 2: # noqa: PLR2004
|
if len(range_info) != 2: # noqa: PLR2004
|
||||||
self.logger.warning('Cannot compute range for category: %s', category.name)
|
self.logger.warning('Cannot compute range for category: %s', category.name)
|
||||||
continue
|
continue
|
||||||
self.logger.debug('Adding managed category: %s for range %d %d', category.name, ord(range_info[0].lower()),
|
self.logger.debug('Adding managed category: %s for range %d %d', category.name, ord(range_info[0].lower()),
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue