From 534d06eb4dfdd359d691fccdf2987ca39c1d8ce3 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sat, 27 May 2017 20:58:27 +0530 Subject: [PATCH] ... --- src/pyj/read_book/iframe.pyj | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/pyj/read_book/iframe.pyj b/src/pyj/read_book/iframe.pyj index 40da5f35f9..a6911ea549 100644 --- a/src/pyj/read_book/iframe.pyj +++ b/src/pyj/read_book/iframe.pyj @@ -129,7 +129,8 @@ class IframeBoss: self.encrypted_communications = True def onerror(self, 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 '') + ''