eric6/Tasks/TaskViewer.py

changeset 7836
2f0d208b8137
parent 7781
607a6098cb44
child 7900
72b88fb20261
child 7924
8a96736d465e
diff -r 0835ed67714b -r 2f0d208b8137 eric6/Tasks/TaskViewer.py
--- a/eric6/Tasks/TaskViewer.py	Sat Nov 21 19:31:16 2020 +0100
+++ b/eric6/Tasks/TaskViewer.py	Sun Nov 22 16:04:59 2020 +0100
@@ -736,7 +736,7 @@
                 try:
                     text, encoding = Utilities.readEncodedFile(fn)
                     lines = text.splitlines()
-                except (UnicodeError, IOError):
+                except (UnicodeError, OSError):
                     count += 1
                     progress.setValue(count)
                     continue
@@ -852,7 +852,7 @@
             try:
                 text, encoding = Utilities.readEncodedFile(fn)
                 lines = text.splitlines()
-            except (UnicodeError, IOError):
+            except (UnicodeError, OSError):
                 continue
             
             # now search tasks and record them

eric ide

mercurial