diff --git a/testing/tests/l10n/lib/Mozilla/CompareLocales.py b/testing/tests/l10n/lib/Mozilla/CompareLocales.py index 729cd297fd6..0e36716f1aa 100755 --- a/testing/tests/l10n/lib/Mozilla/CompareLocales.py +++ b/testing/tests/l10n/lib/Mozilla/CompareLocales.py @@ -80,7 +80,11 @@ class FileCollector: self.__base = path def __iter__(self): self.__w = os.walk(self.__base) - self.__nextDir() + try: + self.__nextDir() + except StopIteration: + # empty dir, bad, but happens + self.__i = [].__iter__() return self def __nextDir(self): self.__t = self.__w.next()