From 23b9b6347a12bd8db06ca2dc8cf9c3fd4ce1632d Mon Sep 17 00:00:00 2001 From: Matthew Einhorn Date: Sun, 13 Jul 2014 21:17:12 -0400 Subject: [PATCH] Catch None in filechooser when iterating files. --- kivy/uix/filechooser.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/kivy/uix/filechooser.py b/kivy/uix/filechooser.py index 3fb8bdcd7..3160114c2 100644 --- a/kivy/uix/filechooser.py +++ b/kivy/uix/filechooser.py @@ -547,6 +547,9 @@ class FileChooserController(FloatLayout): except StopIteration: finished = True break + except TypeError: # in case _gitems_gen is None + finished = True + break # if this wasn't enough for creating all the entries, show a progress # bar, and report the activity to the user.