Skip to content

fix : remove unused make_response import and duplicate has_request_context import in errors/handlers.py #1417

Description

@tmdeveloper007

Summary of What Needs to be Done

In src/errors/handlers.py, there are two import issues:

  1. make_response is imported from Flask but never used anywhere in the file.
  2. has_request_context is imported twice (once with the group of Flask imports, and again separately on its own line).

Changes that Need to be Made

  1. Remove make_response from the from flask import ... line.
  2. Remove the duplicate from flask import has_request_context line, keeping only the first occurrence.

Impact that it would Provide

  • Removes dead code and clarifies the import block.
  • Follows Python import hygiene best practices.
  • Makes the file easier to maintain.

Note: Please assign this issue to the tmdeveloper007 account.

Metadata

Metadata

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions