The final occurrences of exception slicing.
diff --git a/Lib/pstats.py b/Lib/pstats.py
index 4396433..5a2f2d0 100644
--- a/Lib/pstats.py
+++ b/Lib/pstats.py
@@ -617,8 +617,8 @@
             if line:
                 try:
                     self.stats = Stats(line)
-                except IOError as args:
-                    print(args[1], file=self.stream)
+                except IOError as err:
+                    print(err.args[1], file=self.stream)
                     return
                 self.prompt = line + "% "
             elif len(self.prompt) > 2: