From 78ee6fe18bf195cf2228c02d5d7f87ad3a7c26d3 Mon Sep 17 00:00:00 2001 From: agusmakmun Date: Fri, 24 Jan 2020 05:45:09 +0700 Subject: [PATCH] Fixed KeyError #95 --- martor/__init__.py | 2 +- martor/widgets.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/martor/__init__.py b/martor/__init__.py index e32021334..1fa949586 100644 --- a/martor/__init__.py +++ b/martor/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -__VERSION__ = '1.4.5' +__VERSION__ = '1.4.6' __AUTHOR__ = 'Agus Makmun (Summon Agus)' __AUTHOR_EMAIL__ = 'summon.agus@gmail.com' diff --git a/martor/widgets.py b/martor/widgets.py index c3aaad3b7..5c77ac9f2 100644 --- a/martor/widgets.py +++ b/martor/widgets.py @@ -72,11 +72,11 @@ class Media: 'martor/js/martor.js', ) - if MARTOR_ENABLE_CONFIGS['spellcheck'] == 'true': + if MARTOR_ENABLE_CONFIGS.get('spellcheck') == 'true': # Adding the following scripts to the end of the tuple in case it affects behaviour js = ('plugins/js/typo.js', 'plugins/js/spellcheck.js').__add__(js) - if MARTOR_ENABLE_CONFIGS['jquery'] == 'true': + if MARTOR_ENABLE_CONFIGS.get('jquery') == 'true': js = ('plugins/js/jquery.min.js',).__add__(js)