From fa4d0b07fb8e8db63e905a7188020f0eb85e1ddb Mon Sep 17 00:00:00 2001 From: Kevin Lloyd Bernal Date: Fri, 31 Jan 2020 12:29:56 +0800 Subject: [PATCH] update iter() for better fallback in getting 'meta' argument --- scrapinghub/client/proxy.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scrapinghub/client/proxy.py b/scrapinghub/client/proxy.py index 76178395..6133b573 100644 --- a/scrapinghub/client/proxy.py +++ b/scrapinghub/client/proxy.py @@ -110,7 +110,7 @@ def iter(self, _path=None, count=None, requests_params=None, **apiparams): """ update_kwargs(apiparams, count=count) apiparams = self._modify_iter_params(apiparams) - drop_key = '_key' not in apiparams.get('meta', []) + drop_key = '_key' not in (apiparams.get('meta') or []) for entry in self._origin.iter_values( _path, requests_params, **apiparams ):