eric6/DataViews/CodeMetrics.py

changeset 7836
2f0d208b8137
parent 7360
9190402e4505
child 7923
91e843545d9a
--- a/eric6/DataViews/CodeMetrics.py	Sat Nov 21 19:31:16 2020 +0100
+++ b/eric6/DataViews/CodeMetrics.py	Sun Nov 22 16:04:59 2020 +0100
@@ -204,7 +204,7 @@
     """
     try:
         text = Utilities.readEncodedFile(filename)[0]
-    except (UnicodeError, IOError):
+    except (UnicodeError, OSError):
         return SourceStat()
 
     parser = Parser()

eric ide

mercurial