diff options
Diffstat (limited to 'Lib/pstats.py')
| -rw-r--r-- | Lib/pstats.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/pstats.py b/Lib/pstats.py index 2c5bf98..b8bcfb2 100644 --- a/Lib/pstats.py +++ b/Lib/pstats.py @@ -579,7 +579,7 @@ if __name__ == '__main__': if self.stats: try: self.stats.add(line) - except IOError as e: + except OSError as e: print("Failed to load statistics for %s: %s" % (line, e), file=self.stream) else: print("No statistics object is loaded.", file=self.stream) |
