From 38fe804a1102b9322941a162e1f845dfd2b1a777 Mon Sep 17 00:00:00 2001 From: prssanna Date: Thu, 4 Jun 2020 16:14:04 +0530 Subject: [PATCH] fix: remove unused imports, variables --- frappe/utils/dashboard.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/frappe/utils/dashboard.py b/frappe/utils/dashboard.py index 55e9e89464..edbaefaace 100644 --- a/frappe/utils/dashboard.py +++ b/frappe/utils/dashboard.py @@ -7,7 +7,7 @@ from functools import wraps from frappe.utils import add_to_date, cint, get_link_to_form from frappe.modules.import_file import import_doc import os -from os.path import isfile, join +from os.path import join import ast @@ -183,6 +183,6 @@ def make_records(path, filters=None): if filters: doc_dict['filters_json'] = frappe.as_json(filters[doc_name]) import_doc(doc_dict) - except FileNotFoundError as e: - frappe.log_error(message=frappe.get_traceback(), title="Dashboard Import Error") + except FileNotFoundError: + frappe.log_error(message=frappe.get_traceback(), title="Dashboard Sync") pass