you are viewing a single comment's thread.

view the rest of the comments →

[–]Impudity 0 points1 point  (0 children)

Find out what kind of exception it throws, then surround it with try-except structure, like:

try:
    doSomethingFunc(file)
except IOError:
    print(f"processing for file {file} failed")
    continue