fix minor bug in report error if no stat selected in ostasum.py

This commit is contained in:
Justin Clark-Casey
2014-08-19 00:39:38 +01:00
parent 0d60f9df95
commit bad17d465c
@@ -37,7 +37,7 @@ for path in opt.statsLogPath:
stats = corpus.getStats(opt.select)
if len(stats) <= 0:
print "No stats matching %s" % (opts.select)
print "No stats matching %s" % (opt.select)
sys.exit(1)
if opt.action == "sum":
@@ -58,4 +58,4 @@ for stat in stats.values():
else:
print
print "\nFrom %s samples" % (len(corpus))
print "\nFrom %s samples" % (len(corpus))