Merge pull request #2338 from matham/filenone

Catch None in filechooser when iterating files.
This commit is contained in:
Akshay Arora 2014-07-16 16:44:47 +05:30
commit df95b43451
1 changed files with 3 additions and 0 deletions

View File

@ -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.