Skip to content

Commit

Permalink
Fix small bug in parser.
Browse files Browse the repository at this point in the history
  • Loading branch information
EvieePy committed Jan 21, 2020
1 parent a2bff28 commit d067fa9
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion twitchio/parse.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,11 @@ def parser(data: str, nick: str):

for badge in prebadge:
badge = badge.split('=')
badges[badge[0]] = badge[1]

try:
badges[badge[0]] = badge[1]
except IndexError:
pass

if action not in ACTIONS and action not in ACTIONS2:
action = None
Expand Down

0 comments on commit d067fa9

Please sign in to comment.