From d0de1f377b64c394e34e3d33502d038d9c3aea15 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sun, 28 May 2017 11:50:16 +0530 Subject: [PATCH] ... --- src/pyj/book_list/main.pyj | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/pyj/book_list/main.pyj b/src/pyj/book_list/main.pyj index b90394ff92..e7b47ba5d7 100644 --- a/src/pyj/book_list/main.pyj +++ b/src/pyj/book_list/main.pyj @@ -33,7 +33,8 @@ def remove_initial_progress_bar(): p.parentNode.removeChild(p) def onerror(msg, script_url, line_number, column_number, error_object): - console.log(error_object) + if error_object: + console.log(error_object) try: fname = script_url.rpartition('/')[-1] or script_url msg = msg + '
' + 'Error at {}:{}:{}'.format(fname, line_number, column_number or '') + ''