diff --git a/buckler_aiohttp.py b/buckler_aiohttp.py index a2c8ed6..bb10047 100644 --- a/buckler_aiohttp.py +++ b/buckler_aiohttp.py @@ -16,8 +16,8 @@ async def buckler_session(request, handler): Verifies the user with the configured Buckler app and retrieves any session data they may have. Redirects them to the login page otherwise. """ - user_id = request.cookies.get('userid') - user_sid = request.cookies.get('session') + user_id = request.cookies.get('userid', '') + user_sid = request.cookies.get('session', '') url = config.buckler['url'] + '/get_session' params = {