From 7bdc9231f16b5825f06384e596e3050ec6202055 Mon Sep 17 00:00:00 2001 From: Rossen Georgiev Date: Wed, 29 Jun 2016 17:39:22 +0100 Subject: [PATCH] fix proto_fill_from_dict handling of lists --- steam/util/__init__.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/steam/util/__init__.py b/steam/util/__init__.py index c770dfa..105f74f 100644 --- a/steam/util/__init__.py +++ b/steam/util/__init__.py @@ -114,7 +114,10 @@ def proto_fill_from_dict(message, data, clear=True): proto_fill_from_dict(getattr(message, key), val) else: - setattr(message, key, val) + if isinstance(val, list): + getattr(message, key).extend(val) + else: + setattr(message, key, val) return message