Skip to content

Commit dd448af

Browse files
author
Tom
committed
Handle case where context has no user identifier
1 parent cd84e68 commit dd448af

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

feature_flipper/templatetags/feature_flipper.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,4 +57,4 @@ def _get_value(self, key, context):
5757
return key[1:-1]
5858
if key in string.digits:
5959
return int(key)
60-
return context[key]
60+
return context.get(key, False)

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
author_email='[email protected]',
1313
description='A simple, customisable, feature flipper',
1414
url='https://github.com/mypebble/django-feature-flipper.git',
15-
version='0.0.7',
15+
version='0.0.8',
1616
packages=find_packages(),
1717
license='MIT',
1818
long_description=LONG_DESCRIPTION,

0 commit comments

Comments
 (0)