diff options
Diffstat (limited to 'cli/commands/bridge/finnegan.py')
| -rw-r--r-- | cli/commands/bridge/finnegan.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/cli/commands/bridge/finnegan.py b/cli/commands/bridge/finnegan.py index 4a6242b..c914d88 100644 --- a/cli/commands/bridge/finnegan.py +++ b/cli/commands/bridge/finnegan.py @@ -67,7 +67,8 @@ class Finneganizer: if not categories or len(categories) == 0: return [word_a] random.shuffle(categories) - categories = categories[:self.category_count] + if self.category_count > 0: + categories = categories[:self.category_count] results = [ word_a ] for category in categories: catid = category['catid'] |
