Ensure kwargs is a list before we attempt to loop through. Similar fix to 430c462f34 in the proxy module.

This commit is contained in:
Gareth J. Greenaway 2019-01-07 08:23:14 -08:00
parent aeeb047f18
commit 629dc252c2
No known key found for this signature in database
GPG key ID: 10B62F8A7CAD7A41

View file

@ -59,7 +59,7 @@ def cmd(command, *args, **kwargs):
proxy_cmd = '.'.join([proxy_prefix, command])
if proxy_cmd not in __proxy__:
return False
for k in kwargs:
for k in list(kwargs):
if k.startswith('__pub_'):
kwargs.pop(k)
return __proxy__[proxy_cmd](*args, **kwargs)