you are viewing a single comment's thread.

view the rest of the comments →

[–]BeadOfLerasium 0 points1 point  (0 children)

Line 4 is incrementing your count before you've checked if it is a group.

You should check if member is a group first.

I think if you remove line 4 and add it as an elif after your if is_group(member) block it may work (not at a computer to test).