From cbde28afea086ea57ad4c1dd2aaf0e032e7d7e31 Mon Sep 17 00:00:00 2001 From: Rossen Georgiev Date: Wed, 22 Jul 2015 13:17:09 +0100 Subject: [PATCH] WebAPI: fix regression w/ required param check fix #1 --- steam/webapi.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/steam/webapi.py b/steam/webapi.py index 2ab0566..87c58dc 100644 --- a/steam/webapi.py +++ b/steam/webapi.py @@ -233,7 +233,7 @@ class WebAPIMethod(object): optional = param['optional'] # raise if we are missing a required parameter - if not optional and name not in kwargs: + if not optional and name not in kwargs and name != 'key': raise ValueError("Method requires %s to be set" % repr(name)) # populate params that will be passed to _api_request