Commit e9e2472e authored by Arthur Lutz's avatar Arthur Lutz
Browse files

remove print and larger exception

parent e3e464d48670
......@@ -22,7 +22,7 @@ from logilab.common.date import previous_month, first_day, date_range, last_day
from logilab.common.shellutils import ProgressBar
from cubicweb.req import FindEntityError
from cubicweb.web import NotFound
from cubicweb.web import NotFound, Redirect
from psycopg2 import DataError
......@@ -132,7 +132,7 @@ def extract_stats_dict(filepath):
try:
stats_dict[section_name][key][SECTIONSPEC[section_name][index]] = value
except IndexError:
print index, value, line
pass
parsed_countdown -= 1
elif section_name and parsed_countdown == 0:
section_name = None
......@@ -152,7 +152,7 @@ def eid_from_url(req, value):
rset = req.execute(req.form.get('rql'))
if rset and len(rset) == 1:
return rset[0][0]
except (NotFound, DataError):
except (NotFound, DataError, Redirect):
pass
def get_or_create_statperiod(session, start, stop, stats_report={}):
......
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