Skip to content

Commit 78ee6fe

Browse files
committed
Fixed KeyError #95
1 parent 20a7434 commit 78ee6fe

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

martor/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# -*- coding: utf-8 -*-
22

3-
__VERSION__ = '1.4.5'
3+
__VERSION__ = '1.4.6'
44
__AUTHOR__ = 'Agus Makmun (Summon Agus)'
55
__AUTHOR_EMAIL__ = '[email protected]'

martor/widgets.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,11 +72,11 @@ class Media:
7272
'martor/js/martor.js',
7373
)
7474

75-
if MARTOR_ENABLE_CONFIGS['spellcheck'] == 'true':
75+
if MARTOR_ENABLE_CONFIGS.get('spellcheck') == 'true':
7676
# Adding the following scripts to the end of the tuple in case it affects behaviour
7777
js = ('plugins/js/typo.js', 'plugins/js/spellcheck.js').__add__(js)
7878

79-
if MARTOR_ENABLE_CONFIGS['jquery'] == 'true':
79+
if MARTOR_ENABLE_CONFIGS.get('jquery') == 'true':
8080
js = ('plugins/js/jquery.min.js',).__add__(js)
8181

8282

0 commit comments

Comments
 (0)