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 ):