Commit c06634d7 authored by Vincent Pelletier's avatar Vincent Pelletier

Print a warning and exception detail instead of raising.

parent c88a47b4
......@@ -45,6 +45,7 @@ import platform
import re
import sys
import time
import traceback
try:
import pkg_resources
except ImportError:
......@@ -1199,7 +1200,13 @@ def main():
except KeyError:
site_data = per_site[site] = action(threshold, getDuration,
error_detail=error_detail)
site_data.accumulate(match, url_match, date)
try:
site_data.accumulate(match, url_match, date)
except Exception:
if not quiet:
print >> sys.stderr, 'Error analysing line at %s:%i: %r' % (filename,
lineno, line)
print >> sys.stderr, traceback.format_exc()
all_lines += lineno
if show_progress:
print >> sys.stderr, lineno
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment