fix incorrect type for empty tags

This commit is contained in:
Shivaram Lingamneni 2020-01-25 20:59:55 -05:00 committed by Valentin Lorentz
parent fc6bd4968d
commit cab27be1f5

View File

@ -42,7 +42,7 @@ def parse_message(s):
(tags, s) = s.split(' ', 1)
tags = parse_tags(tags[1:])
else:
tags = []
tags = {}
if ' :' in s:
(other_tokens, trailing_param) = s.split(' :', 1)
tokens = list(filter(bool, other_tokens.split(' '))) + [trailing_param]