Skip to content

Commit

Permalink
Fixed KeyError #95
Browse files Browse the repository at this point in the history
  • Loading branch information
agusmakmun committed Jan 23, 2020
1 parent 20a7434 commit 78ee6fe
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion 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'
4 changes: 2 additions & 2 deletions martor/widgets.py
Expand Up @@ -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)


Expand Down

0 comments on commit 78ee6fe

Please sign in to comment.