Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7bfbd1d commit e12a68bCopy full SHA for e12a68b
1 file changed
Lib/pstats.py
@@ -574,7 +574,10 @@ def generic_help(self):
574
575
def do_add(self, line):
576
if self.stats:
577
- self.stats.add(line)
+ try:
578
+ self.stats.add(line)
579
+ except IOError as e:
580
+ print("Failed to load statistics for %s: %s" % (line, e), file=self.stream)
581
else:
582
print("No statistics object is loaded.", file=self.stream)
583
return 0
0 commit comments