Captain Ezio commited on
Commit
5e80b5a
·
1 Parent(s): 17b7442

Update kbhelpers.py

Browse files
Files changed (1) hide show
  1. Powers/utils/kbhelpers.py +2 -1
Powers/utils/kbhelpers.py CHANGED
@@ -19,7 +19,8 @@ def ikb(rows=None, back=False, todo="start_back"):
19
  line.append(button)
20
  lines.append(line)
21
  except (AttributeError, TypeError): # Will make the kb which don't have "." in them
22
- for button in row:
 
23
  button = btn(*button) # InlineKeyboardButton
24
  line.append(button)
25
  lines.append(line)
 
19
  line.append(button)
20
  lines.append(line)
21
  except (AttributeError, TypeError): # Will make the kb which don't have "." in them
22
+ line = []
23
+ for button in rows:
24
  button = btn(*button) # InlineKeyboardButton
25
  line.append(button)
26
  lines.append(line)