- for f in os.listdir(d):
- if f.startswith("enigma2_crash_") and f.endswith(".log"):
- print "[CrashReport] found : ", os.path.basename(f)
- l.append(d + '/' + f)
+ try:
+ for f in os.listdir(d):
+ if f.startswith("enigma2_crash_") and f.endswith(".log"):
+ print "[CrashReport] found : ", os.path.basename(f)
+ l.append(d + '/' + f)
+ except:
+ pass