Skip to content

Commit

Permalink
pylint resolved
Browse files Browse the repository at this point in the history
  • Loading branch information
Ashutosh619-sudo committed Oct 14, 2024
1 parent 4ab4079 commit 191236a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions fyle_xero_api/logging_middleware.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
logger = logging.getLogger(__name__)
logger.level = logging.INFO


class ErrorHandlerMiddleware:
def __init__(self, get_response):
self.get_response = get_response
Expand All @@ -27,9 +28,11 @@ def process_exception(self, request, exception):

return HttpResponse("Error processing the request.", status=500)


class LogPostRequestMiddleware:
def __init__(self, get_response):
self.get_response = get_response

def __call__(self, request):
if request.method in ['POST', 'PUT']:
try:
Expand Down

0 comments on commit 191236a

Please sign in to comment.