summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrédéric Péters <fpeters@entrouvert.com>2017-02-22 13:08:30 (GMT)
committerFrédéric Péters <fpeters@entrouvert.com>2017-02-22 13:08:30 (GMT)
commit6315bbd2fd589381e8b6a8f06121887f4213a3cc (patch)
tree3b73d7369f21b90c88785141067cbbc48ed604bf
parentbfbe8a58037a049635cf70d79b3ddfed101d295c (diff)
downloadcmsplugin-blurp-6315bbd2fd589381e8b6a8f06121887f4213a3cc.zip
cmsplugin-blurp-6315bbd2fd589381e8b6a8f06121887f4213a3cc.tar.gz
cmsplugin-blurp-6315bbd2fd589381e8b6a8f06121887f4213a3cc.tar.bz2
allow signature_key to be None (#15078)v1.18
-rw-r--r--src/cmsplugin_blurp/renderers/data_source.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/cmsplugin_blurp/renderers/data_source.py b/src/cmsplugin_blurp/renderers/data_source.py
index 76076ac..ccdfb56 100644
--- a/src/cmsplugin_blurp/renderers/data_source.py
+++ b/src/cmsplugin_blurp/renderers/data_source.py
@@ -195,7 +195,9 @@ class Data(object):
self.async = source.get('async', False)
self.timeout = source.get('timeout', 10)
self.auth_mech = source.get('auth_mech')
- self.signature_key = source.get('signature_key').encode('ascii')
+ self.signature_key = None
+ if source.get('signature_key'):
+ self.signature_key = source.get('signature_key').encode('ascii')
self.parser_type = source.get('parser_type', 'raw')
self.content_type = source.get('content_type', self.MAPPING[self.parser_type])
self.user_context = source.get('user_context',