Skip to content

Commit 1ceafce

Browse files
committed
style: standardize string quotes in URL scheme check
1 parent 13b3d1b commit 1ceafce

File tree

1 file changed

+2
-2
lines changed
  • src/datapilot/core/knowledge

1 file changed

+2
-2
lines changed

src/datapilot/core/knowledge/cli.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,10 +51,10 @@ def do_GET(self):
5151
def handle_knowledge_base(self, public_id):
5252
"""Fetch and return knowledge base data."""
5353
url = f"{backend_url}/knowledge_bases/public/{public_id}"
54-
54+
5555
# Validate URL scheme for security
5656
parsed_url = urlparse(url)
57-
if parsed_url.scheme not in ('http', 'https'):
57+
if parsed_url.scheme not in ("http", "https"):
5858
self.send_response(400)
5959
self.send_header("Content-Type", "application/json")
6060
self.end_headers()

0 commit comments

Comments
 (0)