From eef34916777725262e59b4c3436e82a55b071207 Mon Sep 17 00:00:00 2001 From: Achilles Rasquinha Date: Thu, 29 Mar 2018 10:47:21 +0530 Subject: [PATCH] fix json loading str to bytes --- frappe/utils/error.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frappe/utils/error.py b/frappe/utils/error.py index 2c66bd85e4..9269d6b3cb 100644 --- a/frappe/utils/error.py +++ b/frappe/utils/error.py @@ -157,7 +157,7 @@ def collect_error_snapshots(): fullpath = os.path.join(path, fname) try: - with open(fullpath, 'rb') as filedata: + with open(fullpath, 'r') as filedata: data = json.load(filedata) except ValueError: