#2161 Fix pagination search issue of yielding None

Open Eric L. Frederich ericfrederich
Showing 1 of 1 files from the diff.

@@ -324,8 +324,8 @@
Loading
324 324
            if isinstance(results, list):
325 325
                for element in results:
326 326
                    yield element
327 -
            else:
328 -
                # Yield result directly if it is not a list.
327 +
            elif results:
328 +
                # Yield result directly if it is not a list and there are results.
329 329
                yield results
330 330
331 331
    def _make_request(self, current_kwargs):

Learn more Showing 4 files with coverage changes found.

Changes in botocore/credentials.py
-1
+1
Loading file...
Changes in botocore/awsrequest.py
-1
+1
Loading file...
Changes in botocore/hooks.py
-2
+2
Loading file...
Changes in botocore/compat.py
-39
+39
Loading file...
Files Coverage
botocore 0.41% 98.29%
Project Totals (58 files) 98.29%
Loading