From 3c4520a6d895ea7be7ae2b4948c57112695f6710 Mon Sep 17 00:00:00 2001 From: Alexandre Aubin Date: Fri, 27 Aug 2021 19:14:23 +0200 Subject: [PATCH] Moar fikses --- moulinette/authentication.py | 2 ++ moulinette/interfaces/__init__.py | 2 +- moulinette/interfaces/api.py | 1 - 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/moulinette/authentication.py b/moulinette/authentication.py index e7b98917..12fd8d0c 100644 --- a/moulinette/authentication.py +++ b/moulinette/authentication.py @@ -1,5 +1,7 @@ # -*- coding: utf-8 -*- +import logging + from moulinette.core import MoulinetteError, MoulinetteAuthenticationError logger = logging.getLogger("moulinette.authenticator") diff --git a/moulinette/interfaces/__init__.py b/moulinette/interfaces/__init__.py index 27b9d4d6..dc33e276 100644 --- a/moulinette/interfaces/__init__.py +++ b/moulinette/interfaces/__init__.py @@ -6,7 +6,7 @@ import argparse import copy from collections import deque, OrderedDict -from moulinette import Moulinette, m18n +from moulinette import m18n from moulinette.core import MoulinetteError logger = logging.getLogger("moulinette.interface") diff --git a/moulinette/interfaces/api.py b/moulinette/interfaces/api.py index 2bfe5365..3e05e57f 100644 --- a/moulinette/interfaces/api.py +++ b/moulinette/interfaces/api.py @@ -83,7 +83,6 @@ class APIQueueHandler(logging.Handler): def emit(self, record): s_id = Session.get_infos()["id"] - sid = request.get_cookie("session.id") try: queue = self.queues[s_id] except KeyError: