Revision 975
Added by Aaron Marcuse-Kubitza almost 13 years ago
lib/exc.py | ||
---|---|---|
45 | 45 |
def track(self, e, **format): |
46 | 46 |
self.e_ct += 1 |
47 | 47 |
print_ex(e, **format) |
48 |
|
|
49 |
class ExPercentTracker(ExTracker): |
|
50 |
def set_iter_ct(self, iter_ct): self.iter_ct = iter_ct |
|
51 |
|
|
52 |
def msg(self): return 'Encountered '+str(self.e_ct)+' error(s)' |
Also available in: Unified diff