diff -r 61a1757626ac -r 3750abc45d5e src/eric7/Tasks/TaskViewer.py --- 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