Skip to content

Commit fc6b79c

Browse files
committed
Fixes on merged pull requests
1 parent 481bbff commit fc6b79c

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

beaker/util.py

+4-2
Original file line numberDiff line numberDiff line change
@@ -315,8 +315,10 @@ def coerce_session_params(params):
315315
if cookie_expires and isinstance(cookie_expires, int) and \
316316
not isinstance(cookie_expires, bool):
317317
opts['cookie_expires'] = timedelta(seconds=cookie_expires)
318-
if opts['timeout'] is not None and not opts['save_accessed_time']:
318+
319+
if opts.get('timeout') is not None and not opts.get('save_accessed_time', True):
319320
raise Exception("save_accessed_time must be true to use timeout")
321+
320322
return opts
321323

322324

@@ -462,7 +464,7 @@ def dumps(self, data):
462464
return zlib.compress(json.dumps(data).encode('utf-8'))
463465

464466

465-
def serialize(data, serializer):
467+
def serialize(data, method):
466468
if method == 'json':
467469
serializer = JsonSerializer()
468470
else:

0 commit comments

Comments
 (0)