src/eric7/Tasks/TaskViewer.py

branch
eric7
changeset 10050
3750abc45d5e
parent 9653
e67609152c5e
child 10069
435cc5875135
--- a/src/eric7/Tasks/TaskViewer.py	Mon May 22 08:46:00 2023 +0200
+++ b/src/eric7/Tasks/TaskViewer.py	Mon May 22 09:07:37 2023 +0200
@@ -847,7 +847,7 @@
                 try:
                     text, encoding = Utilities.readEncodedFile(fn)
                     lines = text.splitlines()
-                except (UnicodeError, OSError):
+                except (OSError, UnicodeError):
                     count += 1
                     progress.setValue(count)
                     continue
@@ -978,7 +978,7 @@
             try:
                 text, encoding = Utilities.readEncodedFile(fn)
                 lines = text.splitlines()
-            except (UnicodeError, OSError):
+            except (OSError, UnicodeError):
                 continue
 
             # now search tasks and record them

eric ide

mercurial