Lets say, we define 4 download directory, from which one 2 are not available (like remote network dirves), then the algorythm will catch the BadDirectoryError one time and returns nothing. At next run (endles loop), it will get the same exception but for the second directory not available.
It would be better, if every such directory here will be discarded.
And if nothing found, an empty list is returned, rather than nothing (or None).
Lets say, we define 4 download directory, from which one 2 are not available (like remote network dirves), then the algorythm will catch the BadDirectoryError one time and returns nothing. At next run (endles loop), it will get the same exception but for the second directory not available.
It would be better, if every such directory here will be discarded.
And if nothing found, an empty list is returned, rather than nothing (or None).