Skip to content

Commit

Permalink
fix lint with flake8
Browse files Browse the repository at this point in the history
  • Loading branch information
Ayush5120 committed Aug 3, 2023
1 parent 191c806 commit a6ba3b7
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions pro_tes/middleware/middleware_pipeline.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@

class MiddlewarePipeline:
"""Middleware pipeline."""

def __init__(self, middlewares=None):
self.middlewares = middlewares or []
logger.info(f"middleware: {self.middlewares}")
Expand All @@ -29,7 +28,6 @@ def process_request(self, request, *args, **kwargs):
Returns:
The modified request object.
"""

for main_middleware, fallback_middlewares in self.middlewares:
try:
# Process the main middleware
Expand Down Expand Up @@ -69,7 +67,6 @@ def load_middleware_instance(middleware_path):
Returns:
Middleware instance.
"""

module_path, class_name = middleware_path.rsplit('.', 1)
module = importlib.import_module(module_path)
middleware_class = getattr(module, class_name)
Expand Down

0 comments on commit a6ba3b7

Please sign in to comment.