[background-report] minor cleanup stage 2

This commit is contained in:
shriharishastry 2018-07-14 18:47:45 +05:30 committed by Prateeksha Singh
parent 0a68539c47
commit d51f030676
2 changed files with 2 additions and 3 deletions

View file

@ -63,7 +63,7 @@ def generate_report_result(report, filters=None, user=None):
# The JOB:
try:
res = frappe.get_attr(method_name)(frappe._dict(filters))
except:
except Exception:
report.prepared_report = 1
report.save()
frappe.throw("The report to too long to load. Please reload the page to generate it in background.")

View file

@ -7,8 +7,7 @@ function get_url_arg(name) {
function get_query_string(url) {
if(url.includes("?")) {
return url.slice(url.indexOf("?")+1);
}
else {
}else {
return "";
}
}